Esempio n. 1
0
 @Override
 public ResultValue<Integer> eval(AutomatonExpressionArguments pArgs) {
   ResultValue<Integer> resA = a.eval(pArgs);
   if (resA.canNotEvaluate()) {
     return resA;
   }
   ResultValue<Integer> resB = b.eval(pArgs);
   if (resB.canNotEvaluate()) {
     return resB;
   }
   return new ResultValue<>(resA.getValue() - resB.getValue());
 }
Esempio n. 2
0
 public int getIntValue() {
   return constantResult.getValue().intValue();
 }