Class XVariableTable

  • All Implemented Interfaces:
    JepComponent, java.io.Serializable
    Direct Known Subclasses:
    DVariableTable

    public class XVariableTable
    extends VariableTable
    An extension of the VariableTable with a few new features. A print methods which can print the equation of a variable.
    Author:
    Rich Morris Created on 18-Mar-2004
    See Also:
    Serialized Form
    • Constructor Detail

      • XVariableTable

        public XVariableTable()
        Create a new XSymbolTable with the given variable factory.
    • Method Detail

      • init

        public void init​(Jep j)
        Description copied from interface: JepComponent
        Initialize the component. This methods is called whenever a component is added to Jep. Hence it allows components to keep track of the other components they may rely on.
        Specified by:
        init in interface JepComponent
        Overrides:
        init in class VariableTable
        Parameters:
        j - the current Jep instance
      • newInstance

        public VariableTable newInstance()
                                  throws JepException
        Creates a new SymbolTable with the same variable factory as this, and the same set of constants.
        Throws:
        JepException
      • print

        public void print​(PrintVisitor pv)
        Prints the contents of the symbol table displaying its equations and value.