slogo.expression
Class VariableFactory
java.lang.Object
slogo.expression.VariableFactory
public class VariableFactory
- extends java.lang.Object
Clients can use this class to obtain a unique variable per identifier
(avoiding a proliferation of objects)
- Author:
- Owen Astrachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ourInstance
private static VariableFactory ourInstance
varnameToVariable
private static java.util.Map<java.lang.String,Variable> varnameToVariable
VariableFactory
private VariableFactory()
getInstance
public static VariableFactory getInstance()
getVariable
public static Variable getVariable(IdentifierToken t)