public class SymbolTable extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
void |
add(MathObject sym)
Adds sym to the SymbolTable, associating it with its name.
|
void |
add(String name,
MathObject sym)
Adds the given MathObject, sym, to the symbol table,
associating it with the given name (which is probably
the name of the symbol or that name transformed to lower
case, but it doesn't have to be).
|
MathObject |
get(String name)
Look up the object with the given name, if any.
|
void |
remove(String name)
Remove the object with the given name from the symbol table,
but NOT from the parent symbol table.
|
public MathObject get(String name)
public void add(MathObject sym)
public void add(String name, MathObject sym)
public void remove(String name)