Symbol
Class Table<K,V>

java.lang.Object
  extended by Symbol.Table

public class Table<K,V>
extends java.lang.Object

The Table class is similar to java.util.HashMap, except that there is a scope mechanism.


Constructor Summary
Table()
           
 
Method Summary
 void beginScope()
          Remembers the current state of the Table.
 void endScope()
          Restores the table to what it was at the most recent beginScope that has not already been ended.
 V get(K key)
           
 java.util.Set<K> keySet()
           
 V put(K key, V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table

public Table()
Method Detail

get

public V get(K key)

put

public V put(K key,
             V value)

beginScope

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


endScope

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


keySet

public java.util.Set<K> keySet()