|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--HashtableStack
The class `HashtableStack' represents a stack of hash tables. It is used for storing frame associations and variable bindings with a stack-based retraction mechanism.
Constructor Summary | |
HashtableStack()
Constructs a new hash table stack with one hash table in it initially. |
Method Summary | |
java.lang.Object |
lookup(java.lang.Object key)
Looks up the value with the given key across all of the hash tables in the stack. |
void |
pop()
Pops the most recently pushed hash table off of the stack, causing all the associations in that hash table to be retracted. |
void |
push()
Pushes a new hash table onto this stack. |
void |
store(java.lang.Object key,
java.lang.Object value)
Stores a given (key,value) pair in the hash table at the top of the stack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HashtableStack()
Method Detail |
public void push()
public void pop()
public void store(java.lang.Object key, java.lang.Object value)
public java.lang.Object lookup(java.lang.Object key)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |