Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

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

### VariableFactory

    public VariableFactory()

Method Detail

### 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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

http://www.singularsys.com/jep Copyright © 2007 Singular Systems