org.nfunk.jep
Class VariableFactory
java.lang.Object
org.nfunk.jep.VariableFactory
- Direct Known Subclasses:
- XVariableFactory
public class VariableFactory
- extends 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(String name,
Object value)
- Create a variable with a name and value
createVariable
public Variable createVariable(String name)
- Create a variable with a name but not value
Copyright © 2014. All rights reserved.