@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()); }
public int getIntValue() { return constantResult.getValue().intValue(); }