|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ponderToolkit.compiler.semantics.Table
Function: Models an Environment Table. The Table class is similar to java.util.Dictionary, except that each key must be a Symbol. Table is filled in with Binder objects.
| Constructor Summary | |
Table()
Constructor when the environment has no parent |
|
Table(Table newParentEnv)
Constructor for a new environment with a parent |
|
Table(Table newParentEnv,
Compiler newCompiler)
Constructor for a new environment with a parent and a reference to the Ponder Compiler for reporting messages |
|
| Method Summary | |
Entry |
get(Symbol key)
Gets the Entry entry object associated with the specified symbol in the Table. |
Binder |
getBinder(Symbol key)
Returns the binder for the given key. |
java.lang.Class |
getLibraryClass()
BLH Addition Returns the class for this library. |
java.lang.Class |
getLibraryObjectClass()
BLH Addition Returns the class modeling this library's objects. |
Table |
getParent()
Returns the parent environment. |
java.util.Enumeration |
keys()
Returns an enumeration of the Table's symbols. |
void |
print()
Prints the Table (for testing purposes) |
Binder |
put(Symbol key,
Entry entry,
Table env)
Puts the specified entry into the Table, bound to the specified Symbol. |
Binder |
put(Symbol key,
Entry entry,
Table env,
TokenPosition pos)
Puts the specified entry into the Table, bound to the specified Symbol. |
void |
setCompiler(Compiler newCompiler)
Sets the Ponder Compiler for reporting messages |
void |
setLibraryClass(java.lang.Class cls)
BLH Addition Set the class for this library. |
void |
setLibraryObjectClass(java.lang.Class cls)
BLH Addition Set the class modeling this library's objects. |
void |
setParent(Table newParentEnv)
Set the parent environment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Table()
public Table(Table newParentEnv)
public Table(Table newParentEnv,
Compiler newCompiler)
| Method Detail |
public void setCompiler(Compiler newCompiler)
public Entry get(Symbol key)
public Binder put(Symbol key,
Entry entry,
Table env)
public Binder put(Symbol key,
Entry entry,
Table env,
TokenPosition pos)
public Binder getBinder(Symbol key)
public void setParent(Table newParentEnv)
public Table getParent()
public java.util.Enumeration keys()
public void setLibraryClass(java.lang.Class cls)
public java.lang.Class getLibraryClass()
public void setLibraryObjectClass(java.lang.Class cls)
public java.lang.Class getLibraryObjectClass()
public void print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||