예제 #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);
 }