All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class term.VariableTable

java.lang.Object
   |
   +----term.VariableTable

public class VariableTable
extends Object
A Hashtable to store variable values.


Constructor Index

 o VariableTable()
Constructor builds a new Hashtable.

Method Index

 o addVariable(String, BigDecimal)
Adds a new Variable with the given value.
 o addVariable(String, TermBaum)
Enter a new variable with the given Term value or change the existing value.
 o elements()
Returns an Enumeration of all variable names stored in the hashtable.
 o getValue(String)
Returns the value of the variable or null if no value is stored.
 o removeVariable(String)
Removes the given variable from the hashtable returning the old value if it existed (otherwise null).

Constructors

 o VariableTable
 public VariableTable()
Constructor builds a new Hashtable.

Methods

 o addVariable
 public void addVariable(String name,
                         BigDecimal value)
Adds a new Variable with the given value.

 o addVariable
 public void addVariable(String name,
                         TermBaum value)
Enter a new variable with the given Term value or change the existing value.

 o elements
 public Enumeration elements()
Returns an Enumeration of all variable names stored in the hashtable.

 o getValue
 public TermBaum getValue(String name)
Returns the value of the variable or null if no value is stored.

 o removeVariable
 public TermBaum removeVariable(String name)
Removes the given variable from the hashtable returning the old value if it existed (otherwise null).


All Packages  Class Hierarchy  This Package  Previous  Next  Index