|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nfunk.jep.VariableFactory
A factory class which is used to create variables.
By default this class creates variables of type Variable
.
This class should be subclassed if the type of variable used needs to be changed.
This class is passed to the constructor of SymbolTable
which ensures that variables of the correct type are always created.
Constructor Summary | |
VariableFactory()
|
Method Summary | |
Variable |
createVariable(java.lang.String name)
Create a variable with a name but not value |
Variable |
createVariable(java.lang.String name,
java.lang.Object value)
Create a variable with a name and value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VariableFactory()
Method Detail |
public Variable createVariable(java.lang.String name, java.lang.Object value)
public Variable createVariable(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |