コード例 #1
0
ファイル: Between.java プロジェクト: khaliyo/pet
 public Comparable<?>[] evaluate(ASTFunNode node, JepRuntime runtime) throws ParseException {
   node.childrenAccept(runtime.ev, null);
   Comparable<?> limit2 = runtime.stack.pop();
   Comparable<?> limit1 = runtime.stack.pop();
   Comparable<?> source = runtime.stack.pop();
   return new Comparable<?>[] {source, limit1, limit2};
 }
コード例 #2
0
 public Comparable<?>[] evaluate(ASTFunNode node, JepRuntime runtime) throws ParseException {
   node.childrenAccept(runtime.ev, null);
   Comparable<?> param = runtime.stack.pop();
   return new Comparable<?>[] {param};
 }