|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SymbolTableEntry
A SymbolTableEntry holds semantic information for a symbol declared in a program. The information is the string name of the symbol and its declared data type.
SymbolTableEntry is an abstract class, with extensions for variable data entries and functional entries. These are defined, respectively, in the VariableEntry and FunctionEntry classes.
Field Summary | |
java.lang.String |
name
This symbol's name |
TreeNode |
type
Data type, represented as a parse tree. |
Constructor Summary | |
SymbolTableEntry()
Construct this with null data fields. |
|
SymbolTableEntry(java.lang.String name,
TreeNode type)
Construct this with the given data field values. |
Method Summary | |
protected java.lang.String |
doToString(int level,
java.lang.String type)
Common work doer for other toStrings. |
protected java.lang.String |
indentString(int level)
Convenience method for creating an indent string. |
java.lang.String |
toString()
Return toString(0). |
java.lang.String |
toString(int level)
Return the string representation of this' two fields, with other fields added by this' extensions. |
java.lang.String |
toStringDeep()
Return toStringDeep(0). |
java.lang.String |
toStringDeep(int level)
Version of toString that dumps out the full type structure, not just its root ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String name
public TreeNode type
Constructor Detail |
public SymbolTableEntry()
public SymbolTableEntry(java.lang.String name, TreeNode type)
Method Detail |
public java.lang.String toString()
public java.lang.String toStringDeep()
public java.lang.String toString(int level)
public java.lang.String toStringDeep(int level)
protected java.lang.String doToString(int level, java.lang.String type)
protected java.lang.String indentString(int level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |