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