示例#1
0
 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;
 }
示例#2
0
 public Object put(Object value) {
   scope.put(key.toString(), value);
   return value;
 }
示例#3
0
 @SuppressWarnings("unchecked")
 public <R> R getValue(Class<R> klass) throws PoslException {
   return (R) scope.get(klass, key);
 }