org.nfunk.jep
Class VariableFactory
java.lang.Object
org.nfunk.jep.VariableFactory
- Direct Known Subclasses:
- XVariableFactory
public class VariableFactory
- extends java.lang.Object
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.
This class should only be called from the SymbolTable class and not from application code.
- Author:
- Rich Morris
Created on 19-Dec-2003
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VariableFactory
public VariableFactory()
createVariable
public Variable createVariable(java.lang.String name,
java.lang.Object value)
- Create a variable with a name and value
createVariable
public Variable createVariable(java.lang.String name)
- Create a variable with a name but not value
http://www.singularsys.com/jep Copyright © 2007 Singular Systems