Class HashtableStack
java.lang.Object
|
+----HashtableStack
- public class HashtableStack
- extends Object
- implements Serializable
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.
-
HashtableStack()
- Constructs a new hash table stack with one hash table in it
initially.
-
lookup(Object)
- Looks up the value with the given key across all of the hash tables
in the stack.
-
pop()
- Pops the most recently pushed hash table off of the stack, causing
all the associations in that hash table to be retracted.
-
push()
- Pushes a new hash table onto this stack.
-
store(Object, Object)
- Stores a given (key,value) pair in the hash table at the top of the
stack.
HashtableStack
public HashtableStack()
- Constructs a new hash table stack with one hash table in it
initially.
push
public void push()
- Pushes a new hash table onto this stack. All subsequent calls to
store will put an object in this hash table until it is popped.
pop
public void pop()
- Pops the most recently pushed hash table off of the stack, causing
all the associations in that hash table to be retracted.
store
public void store(Object key,
Object value)
- Stores a given (key,value) pair in the hash table at the top of the
stack.
lookup
public Object lookup(Object key)
- Looks up the value with the given key across all of the hash tables
in the stack.