예제 #1
0
  public FilterValidator isBinary(final BinaryOperatorKind binaryOperator) {
    if (!(curExpression instanceof Binary)) {
      fail("Current expression is not a binary operator");
    }

    Binary binary = (Binary) curExpression;
    assertEquals(binaryOperator, binary.getOperator());
    return this;
  }
예제 #2
0
 public FilterValidator isBinary(final BinaryOperatorKind binaryOperator) {
   assertTrue("Current expression not a binary operator", curExpression instanceof Binary);
   Binary binary = (Binary) curExpression;
   assertEquals(binaryOperator, binary.getOperator());
   return this;
 }