org.lsmp.djep.xjep
Class XSymbolTable

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byorg.nfunk.jep.SymbolTable
              extended byorg.lsmp.djep.xjep.XSymbolTable
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable
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

Field Summary
 
Fields inherited from class org.nfunk.jep.SymbolTable
vf
 
Constructor Summary
XSymbolTable(VariableFactory varFac)
          Create a new XSymbolTable with the given variable factory.
 
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, addVariable, clearValues, get, getValue, getVar, getVariableFactory, 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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XSymbolTable

public XSymbolTable(VariableFactory varFac)
Create a new XSymbolTable with the given variable factory.

Method Detail

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.



http://www.singularsys.com/jep Copyright © 2004 Singular Systems