/** * Creates a copy of this expression node, without copying children. */ @Override public Expression shallowCopy() { return new ASTGreaterOrEqual(id); }
public ASTGreaterOrEqual(SimpleNode path, Object value) { super(ExpressionParserTreeConstants.JJTGREATEROREQUAL); jjtAddChild(path, 0); jjtAddChild(new ASTScalar(value), 1); connectChildren(); }
protected Object evaluateNode(Object o) throws Exception { int len = jjtGetNumChildren(); if (len != 2) { return Boolean.FALSE; } Comparable c1 = ConversionUtil.toComparable(evaluateChild(0, o)); if (c1 == null) { return Boolean.FALSE; } Comparable c2 = ConversionUtil.toComparable(evaluateChild(1, o)); if (c2 == null) { return Boolean.FALSE; } return c1.compareTo(c2) >= 0 ? Boolean.TRUE : Boolean.FALSE; }
public ASTGreaterOrEqual(ASTPath path, Object value) { super(ExpressionParserTreeConstants.JJTGREATEROREQUAL); jjtAddChild(path, 0); jjtAddChild(new ASTScalar(value), 1); connectChildren(); }
/** * Creates a copy of this expression node, without copying children. */ public Expression shallowCopy() { return new ASTGreaterOrEqual(id); }
/** * @since 4.0 * @see ExpressionFactory#greaterOrEqualExp(String, Object) */ static Expression greaterOrEqualExp(Expression exp, Object value) { if(!(exp instanceof SimpleNode)) { throw new IllegalArgumentException("exp should be instance of SimpleNode"); } return new ASTGreaterOrEqual((SimpleNode)exp, value); }
/** * A convenience method to create an DB_PATH "greater than or equal to" * expression. * * @since 3.0 */ public static Expression greaterOrEqualDbExp(String pathSpec, Object value) { return new ASTGreaterOrEqual(new ASTDbPath(pathSpec), value); }
/** * A convenience method to create an OBJ_PATH "greater than or equal to" expression. */ public static Expression greaterOrEqualExp(String pathSpec, Object value) { return new ASTGreaterOrEqual(new ASTObjPath(pathSpec), value); }
case 12: jj_consume_token(12); ASTGreaterOrEqual jjtn006 = new ASTGreaterOrEqual(JJTGREATEROREQUAL); boolean jjtc006 = true; jjtree.openNodeScope(jjtn006);
case 12: jj_consume_token(12); ASTGreaterOrEqual jjtn008 = new ASTGreaterOrEqual(JJTGREATEROREQUAL); boolean jjtc008 = true; jjtree.openNodeScope(jjtn008);