public Object evaluate() throws PoslException { Object result = scope.getValue(key); if (result instanceof IStatement) { if (((IStatement) result).isMultiLine()) { return Interpreter.processList(scope, (MultiLineStatement) result); } else { return Interpreter.process(scope, (Statement) result); } } return result; }
public Object put(Object value) { scope.put(key.toString(), value); return value; }
@SuppressWarnings("unchecked") public <R> R getValue(Class<R> klass) throws PoslException { return (R) scope.get(klass, key); }