public class VariableFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static VariableFactory |
ourInstance |
private static java.util.Map<java.lang.String,Variable> |
varnameToVariable |
Modifier | Constructor and Description |
---|---|
private |
VariableFactory() |
Modifier and Type | Method and Description |
---|---|
static VariableFactory |
getInstance()
There should only be one VariableFactory
|
static Variable |
getVariable(IdentifierToken idToken)
Determines the variable represented by the given id
|
private static VariableFactory ourInstance
private static java.util.Map<java.lang.String,Variable> varnameToVariable
public static VariableFactory getInstance()
public static Variable getVariable(IdentifierToken idToken)
idToken
- - an identifier token