| java.lang.Object pnuts.lang.SymbolTable
All known Subclasses: pnuts.lang.Package,
serialVersionUID | final static long serialVersionUID(Code) | | |
SymbolTable | public SymbolTable()(Code) | | |
addBinding | synchronized void addBinding(int hash, String interned, Object value, int index)(Code) | | |
addConstant | synchronized void addConstant(int hash, String interned, Object value, int index)(Code) | | |
clear | public synchronized void clear()(Code) | | Deletes all name-value bindings.
|
ensureCapacity | void ensureCapacity(int newCapacity)(Code) | | |
get | public synchronized Object get(String interned)(Code) | | Gets the value of a variable.
Parameters: interned - the name of the variable, which must be intern'd the value |
keys | public Enumeration keys()(Code) | | Returns an enumeration of the keys in the symbol table.
an enumeration of the keys |
lookup | public synchronized NamedValue lookup(String interned)(Code) | | Looks for a name-value binding in the symbol table chain.
Parameters: interned - the name of the variable, which must be intern'd a NamedValue |
set | public synchronized void set(String interned, Object value)(Code) | | Defines a name-value binding in the symbol table.
Parameters: interned - the name of the variable, which must be intern'd Parameters: value - the new value exception: IllegalStateException - thrown when the specified symbol has been defined as aconstant. |
setConstant | public synchronized void setConstant(String interned, Object value)(Code) | | Defines a constant in the symbol table.
Parameters: interned - the name of the variable, which must be intern'd Parameters: value - the constant value exception: IllegalStateException - thrown when the specified symbol has been defined as aconstant |
values | public Enumeration values()(Code) | | Returns an enumeration of the values in the symbol table.
an enumeration of the values |
|
|