All Packages Class Hierarchy This Package Previous Next Index
Class Symbol.Table
java.lang.Object
|
+----Symbol.Table
- public class Table
- extends Object
The Table class is similar to java.util.Dictionary, except that
each key must be a Symbol and there is a scope mechanism.
-
Table()
-
-
beginScope()
- Remembers the current state of the Table.
-
endScope()
-
Restores the table to what it was at the most recent beginScope
that has not already been ended.
-
get(Symbol)
- Gets the object associated with the specified symbol in the Table.
-
keys()
- Returns an enumeration of the Table's symbols.
-
put(Symbol, Object)
- Puts the specified value into the Table, bound to the specified Symbol.
Table
public Table()
get
public Object get(Symbol key)
- Gets the object associated with the specified symbol in the Table.
put
public void put(Symbol key,
Object value)
- Puts the specified value into the Table, bound to the specified Symbol.
beginScope
public void beginScope()
- Remembers the current state of the Table.
endScope
public void endScope()
- Restores the table to what it was at the most recent beginScope
that has not already been ended.
keys
public Enumeration keys()
- Returns an enumeration of the Table's symbols.
All Packages Class Hierarchy This Package Previous Next Index