|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SymbolTableEntry BlockEntry
BlockEntry extends SymbolTableEntry by adding a data field to support nested scoping. The field is a reference to a Symbol table for the block's scope.
BlockEntry is intended to support anonymous inner blocks, in contrast to FunctionEntry , which supports the named scoping blocks defined by a function scope.
Field Summary | |
SymbolTable |
scope
Local scope for this function. |
Fields inherited from class SymbolTableEntry |
name, type |
Constructor Summary | |
BlockEntry()
Construct this with null data fields. |
|
BlockEntry(SymbolTable scope)
Construct this with the given data field value. |
Method Summary | |
protected java.lang.String |
scopeString(int level)
Called by toString to recursively stringify the scope, if non-null. |
java.lang.String |
toString(int level)
Return the string rep of this. |
Methods inherited from class SymbolTableEntry |
doToString, indentString, toString, toStringDeep, toStringDeep |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public SymbolTable scope
Constructor Detail |
public BlockEntry()
public BlockEntry(SymbolTable scope)
Method Detail |
public java.lang.String toString(int level)
toString
in class SymbolTableEntry
protected java.lang.String scopeString(int level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |