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.


Constructor Index

 o HashtableStack()
Constructs a new hash table stack with one hash table in it initially.

Method Index

 o lookup(Object)
Looks up the value with the given key across all of the hash tables in the stack.
 o pop()
Pops the most recently pushed hash table off of the stack, causing all the associations in that hash table to be retracted.
 o push()
Pushes a new hash table onto this stack.
 o store(Object, Object)
Stores a given (key,value) pair in the hash table at the top of the stack.

Constructors

 o HashtableStack
 public HashtableStack()
Constructs a new hash table stack with one hash table in it initially.

Methods

 o 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.

 o 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.

 o store
 public void store(Object key,
                   Object value)
Stores a given (key,value) pair in the hash table at the top of the stack.

 o lookup
 public Object lookup(Object key)
Looks up the value with the given key across all of the hash tables in the stack.