protected static boolean isOddnessCheck(InfixExpression oddnessCheck) {
   if (EQUALS.equals(oddnessCheck.getOperator())) {
     if (isRemainderExp(oddnessCheck.getLeftOperand())) {
       return isNumber(oddnessCheck.getRightOperand(), 1);
     }
     if (isRemainderExp(oddnessCheck.getRightOperand())) {
       return isNumber(oddnessCheck.getLeftOperand(), 1);
     }
   }
   return false;
 }
Example #2
0
        @Override
        boolean evaluate(
            Instance inst,
            int lhsAttIndex,
            String rhsOperand,
            double numericOperand,
            Pattern regexPattern,
            boolean rhsIsAttribute,
            int rhsAttIndex) {

          return !EQUALS.evaluate(
              inst,
              lhsAttIndex,
              rhsOperand,
              numericOperand,
              regexPattern,
              rhsIsAttribute,
              rhsAttIndex);
        }