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.


Constructor Index

 o Table()

Method Index

 o beginScope()
Remembers the current state of the Table.
 o endScope()
Restores the table to what it was at the most recent beginScope that has not already been ended.
 o get(Symbol)
Gets the object associated with the specified symbol in the Table.
 o keys()
Returns an enumeration of the Table's symbols.
 o put(Symbol, Object)
Puts the specified value into the Table, bound to the specified Symbol.

Constructors

 o Table
 public Table()

Methods

 o get
 public Object get(Symbol key)
Gets the object associated with the specified symbol in the Table.

 o put
 public void put(Symbol key,
                 Object value)
Puts the specified value into the Table, bound to the specified Symbol.

 o beginScope
 public void beginScope()
Remembers the current state of the Table.

 o endScope
 public void endScope()
Restores the table to what it was at the most recent beginScope that has not already been ended.

 o keys
 public Enumeration keys()
Returns an enumeration of the Table's symbols.


All Packages  Class Hierarchy  This Package  Previous  Next  Index