Go backward to Variables and Assignments Go up to Top Go forward to Function Constants |
public final class Variable implements Term { private String variable; public Value eval() throws EvalException { Value value = Context.get(variable); if (value == null) throw new EvalException("no variable " + variable + " in context"); return value; } }