org.jatha.util
Class SymbolTable
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<String,LispValue>
org.jatha.util.SymbolTable
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,LispValue>, SortedMap<String,LispValue>
public class SymbolTable
- extends TreeMap<String,LispValue>
This defines a hash table containing LispSymbol class elements. They are
indexed by LispString class elements.
- See Also:
- Serialized Form
Methods inherited from class java.util.TreeMap |
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, put, putAll, remove, size, subMap, tailMap, values |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
HASH_TABLE_DEFAULT_SIZE
public static final int HASH_TABLE_DEFAULT_SIZE
- See Also:
- Constant Field Values
HASH_TABLE_DEFAULT_LOAD_FACTOR
public static final float HASH_TABLE_DEFAULT_LOAD_FACTOR
- See Also:
- Constant Field Values
f_lisp
private Jatha f_lisp
SymbolTable
public SymbolTable(Jatha lisp)
SymbolTable
public SymbolTable(Jatha lisp,
int defaultSize)
SymbolTable
public SymbolTable(Jatha lisp,
int initialSize,
float loadFactor)
put
public LispValue put(LispString key,
LispValue value)
get
public LispValue get(LispString key)
replace
public LispValue replace(LispString key,
LispValue value)
keys
public Iterator keys()
- Returns an Iterator across the symbols of the SymbolTable.
Each symbol is a string.