this.localVariables.put(identifier,
value);
}
public VariableResolver createVariable(String name, Object value) {
VariableResolver vr;
try {
vr = getVariableResolver(name);
}
catch (UnresolveablePropertyException e) {
vr = null;
}
if (vr != null && vr.getType() != null) {
throw new CompileException("variable already defined within scope: " + vr.getType() + " " + name);
}
else {
return addResolver(name, new LocalVariableResolver(this, name), value);
}
}