@Test public void checkLessThanEqualToNestedParse() { final String EXPECTED_RESULT = "((1 <= 2) <= 3)"; QLParser parser = ASTBuilder.getQlParser("1<=2<=3"); LessThanEqualTo expression = (LessThanEqualTo) ASTBuilder.getExpression(parser); assertEquals(EXPECTED_RESULT, expression.toString()); }
@Override public String toString() { return "(" + getLeft() + " <= " + getRight() + ")"; }
LessThanEqualTo extends BinaryOperation { @Override public String toString() { return "(" + getLeft() + " <= " + getRight() + ")"; } }
LessThanEqualTo extends BinaryOperation { @Override public String toString() { return "(" + getLeft() + " <= " + getRight() + ")"; } LessThanEqualTo(Expression left, Expression right, int line, int charPositionInLine); }
LessThanEqualTo extends BinaryOperation { @Override public String toString() { return "(" + getLeft() + " <= " + getRight() + ")"; } LessThanEqualTo(Expression left, Expression right, int line, int charPositionInLine); @Override String toString(); @Override T accept(ExpressionVisitor<T, C> visitor, C context); }
LessThanEqualTo extends BinaryOperation { @Override public String toString() { return "(" + getLeft() + " <= " + getRight() + ")"; } LessThanEqualTo(Expression left, Expression right, int line, int charPositionInLine); @Override String toString(); @Override T accept(ExpressionVisitor<T, C> visitor, C context);  }