org.joo.libra.sql.node.LexicalCompareExpressionNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joo-libra Show documentation
Show all versions of joo-libra Show documentation
Java Predicate with SQL-like syntax support
package org.joo.libra.sql.node;
import org.joo.libra.Predicate;
import org.joo.libra.common.HasValue;
import org.joo.libra.sql.antlr.SqlLexer;
import org.joo.libra.text.MatchPredicate;
public class LexicalCompareExpressionNode extends AbstractBinaryOpExpressionNode> {
@Override
public Predicate buildPredicate() {
if (getOp() == SqlLexer.MATCHES)
return new MatchPredicate(getLeft(), getRight());
return null;
}
}