|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SymbolI
Generic symbol interface (i.e., an entry in a symbol table).
This interface is used to implement any kind of symbol table entry, such as one in a symbol table tree resulting from the parsing of a source program.
SymbolTableI
Field Summary | |
---|---|
static java.lang.String |
REV
Revision information. |
Method Summary | |
---|---|
void |
getName()
Retrieves the name of this symbol. |
int |
getSerialNum()
Retrieves the serial number of this symbol. |
int |
getType()
Retrieves the data type of this symbol. |
void |
setName(java.lang.String id)
Establishes the name of this symbol. |
void |
setSerialNum(int n)
Establishes the serial number of this symbol. |
void |
setType(int type)
Establishes the data type of this symbol. |
Field Detail |
---|
static final java.lang.String REV
Method Detail |
---|
void setName(java.lang.String id)
id
- The name of this symbol.void getName()
void setSerialNum(int n)
n
- The serial number of this symbol, which should be unique within the
symbol table containing this symbol.int getSerialNum()
void setType(int type)
type
- The data type of this symbol.int getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |