org.lsmp.djep.xjep
Class XSymbolTable
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable
org.nfunk.jep.SymbolTable
org.lsmp.djep.xjep.XSymbolTable
- All Implemented Interfaces:
- Serializable, Cloneable, Map
- Direct Known Subclasses:
- DSymbolTable
public class XSymbolTable
- extends SymbolTable
An extension of the symbol table with a few new features.
- Author:
- Rich Morris
Created on 18-Mar-2004
- See Also:
- Serialized Form
|
Method Summary |
void |
copyConstants(SymbolTable symTab)
Copy the values of all constants into this from the supplied symbol table. |
SymbolTable |
newInstance()
Creates a new SymbolTable with the same variable factory as this. |
void |
print(PrintVisitor pv)
Prints the contents of the symbol table displaying its equations and value. |
| Methods inherited from class org.nfunk.jep.SymbolTable |
addConstant, addObserver, addObserverToExistingVariables, addVariable, clearNonConstants, clearValues, countObservers, createVariable, createVariable, deleteObserver, deleteObservers, get, getValue, getVar, getVariableFactory, hasChanged, makeVarIfNeeded, makeVarIfNeeded, put, setVarValue, toString |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, values |
XSymbolTable
public XSymbolTable(VariableFactory varFac)
- Create a new XSymbolTable with the given variable factory.
newInstance
public SymbolTable newInstance()
- Creates a new SymbolTable with the same variable factory as this.
print
public void print(PrintVisitor pv)
- Prints the contents of the symbol table displaying its equations and value.
copyConstants
public void copyConstants(SymbolTable symTab)
- Copy the values of all constants into this from the supplied symbol table.
Copyright © 2014. All rights reserved.