Search in sources :

Example 1 with ASTLike

use of org.eclipse.rdf4j.query.parser.serql.ast.ASTLike in project rdf4j by eclipse.

the class QueryModelBuilder method visit.

@Override
public Like visit(ASTLike node, Object data) throws VisitorException {
    ValueExpr expr = (ValueExpr) node.getValueExpr().jjtAccept(this, null);
    String pattern = (String) node.getPattern().jjtAccept(this, null);
    boolean caseSensitive = !node.ignoreCase();
    return new Like(expr, pattern, caseSensitive);
}
Also used : ValueExpr(org.eclipse.rdf4j.query.algebra.ValueExpr) ASTValueExpr(org.eclipse.rdf4j.query.parser.serql.ast.ASTValueExpr) Like(org.eclipse.rdf4j.query.algebra.Like) ASTLike(org.eclipse.rdf4j.query.parser.serql.ast.ASTLike) ASTString(org.eclipse.rdf4j.query.parser.serql.ast.ASTString)

Aggregations

Like (org.eclipse.rdf4j.query.algebra.Like)1 ValueExpr (org.eclipse.rdf4j.query.algebra.ValueExpr)1 ASTLike (org.eclipse.rdf4j.query.parser.serql.ast.ASTLike)1 ASTString (org.eclipse.rdf4j.query.parser.serql.ast.ASTString)1 ASTValueExpr (org.eclipse.rdf4j.query.parser.serql.ast.ASTValueExpr)1