/** * Creates a copy of this expression node, without copying children. */ @Override public Expression shallowCopy() { return new ASTLikeIgnoreCase(id, escapeChar); }
public ASTLikeIgnoreCase(ASTPath path, Object pattern) { super(ExpressionParserTreeConstants.JJTLIKEIGNORECASE, true); jjtAddChild(path, 0); jjtAddChild(wrapChild(pattern), 1); connectChildren(); }
protected Object evaluateNode(Object o) throws Exception { int len = jjtGetNumChildren(); if (len != 2) { return Boolean.FALSE; } String s1 = ConversionUtil.toString(evaluateChild(0, o)); if (s1 == null) { return Boolean.FALSE; } return matchPattern(s1) ? Boolean.TRUE : Boolean.FALSE; }
public ASTLikeIgnoreCase(SimpleNode path, Object pattern) { super(ExpressionParserTreeConstants.JJTLIKEIGNORECASE, true); jjtAddChild(path, 0); jjtAddChild(new ASTScalar(pattern), 1); connectChildren(); }
@Override protected Boolean evaluateSubNode(Object o, Object[] evaluatedChildren) throws Exception { String s1 = ConversionUtil.toString(o); if (s1 == null) { return Boolean.FALSE; } return matchPattern(s1) ? Boolean.TRUE : Boolean.FALSE; }
public ASTLikeIgnoreCase(SimpleNode path, Object pattern, char escapeChar) { super(ExpressionParserTreeConstants.JJTLIKEIGNORECASE, true, escapeChar); jjtAddChild(path, 0); jjtAddChild(new ASTScalar(pattern), 1); connectChildren(); }
/** * Creates a copy of this expression node, without copying children. */ public Expression shallowCopy() { return new ASTLikeIgnoreCase(id); }
static ASTLikeIgnoreCase likeIgnoreCaseExp(Expression exp, Object value, char escapeChar) { if(!(exp instanceof SimpleNode)) { throw new IllegalArgumentException("exp should be instance of SimpleNode"); } return new ASTLikeIgnoreCase((SimpleNode) exp, value, escapeChar); }
/** * A convenience shortcut for building LIKE_IGNORE_CASE expression. * * @since 3.0 */ public static Expression likeIgnoreCaseDbExp(String pathSpec, Object value) { return new ASTLikeIgnoreCase(new ASTDbPath(pathSpec), value); }
/** * A convenience shortcut for building LIKE_IGNORE_CASE expression. */ public static Expression likeIgnoreCaseExp(String pathSpec, Object value) { return new ASTLikeIgnoreCase(new ASTObjPath(pathSpec), value); }
/** * <p> * A convenience shortcut for building LIKE_IGNORE_CASE expression. * </p> * <p> * The escape character allows for escaping meta-characters in the LIKE * clause. Note that the escape character cannot be '?'. To specify no * escape character, supply 0 as the escape character. * </p> * * @since 3.0.1 */ public static Expression likeIgnoreCaseDbExp(String pathSpec, Object value, char escapeChar) { return new ASTLikeIgnoreCase(new ASTDbPath(pathSpec), value, escapeChar); }
case 14: jj_consume_token(14); ASTLikeIgnoreCase jjtn008 = new ASTLikeIgnoreCase(JJTLIKEIGNORECASE); boolean jjtc008 = true; jjtree.openNodeScope(jjtn008);
case 14: jj_consume_token(14); ASTLikeIgnoreCase jjtn010 = new ASTLikeIgnoreCase(JJTLIKEIGNORECASE); boolean jjtc010 = true; jjtree.openNodeScope(jjtn010);