public class VariableFactory extends Object implements Serializable
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.
Constructor and Description |
---|
VariableFactory() |
Modifier and Type | Method and Description |
---|---|
Variable |
createVariable(String name)
Create a variable with a name but not value
|
Variable |
createVariable(String name,
Object value)
Create a variable with a name and value
|
Jas4pp 1.5 © Java Analysis Studio for Particle Physics