Class BlockEntry

java.lang.Object
  extended bySymbolTableEntry
      extended byBlockEntry

public class BlockEntry
extends SymbolTableEntry

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

scope

public SymbolTable scope
Local scope for this function.

Constructor Detail

BlockEntry

public BlockEntry()
Construct this with null data fields.


BlockEntry

public BlockEntry(SymbolTable scope)
Construct this with the given data field value.

Method Detail

toString

public java.lang.String toString(int level)
Return the string rep of this.

Overrides:
toString in class SymbolTableEntry

scopeString

protected java.lang.String scopeString(int level)
Called by toString to recursively stringify the scope, if non-null.