@Test void testVisitOrNode() { String argument0 = "piet"; ComparisonOperator operator0 = new ComparisonOperator("=q="); ComparisonNode node0 = new ComparisonNode(operator0, "*", singletonList(argument0)); String argument1 = "jan"; ComparisonOperator operator1 = new ComparisonOperator("=q="); ComparisonNode node1 = new ComparisonNode(operator1, "*", singletonList(argument1)); OrNode orNode = new OrNode(asList(node0, node1)); Query query = Query.builder() .setOperator(OR) .setValue( asList( Query.builder().setOperator(MATCHES).setValue(argument0).build(), Query.builder().setOperator(MATCHES).setValue(argument1).build())) .build(); assertEquals(query, queryRsqlVisitor.visit(orNode)); }
@Override public Query visit(AndNode node) { return visit(node, AND); }
QueryRsqlVisitor extends NoArgRSQLVisitorAdapter<Query> { @Override public Query visit(AndNode node) { return visit(node, AND); } }
QueryRsqlVisitor extends NoArgRSQLVisitorAdapter<Query> { @Override public Query visit(AndNode node) { return visit(node, AND); }  }
QueryRsqlVisitor extends NoArgRSQLVisitorAdapter<Query> { @Override public Query visit(AndNode node) { return visit(node, AND); }  @Override Query visit(AndNode node); @Override Query visit(OrNode node); @Override Query visit(ComparisonNode node); }
QueryRsqlVisitor extends NoArgRSQLVisitorAdapter<Query> { @Override public Query visit(AndNode node) { return visit(node, AND); }  @Override Query visit(AndNode node); @Override Query visit(OrNode node); @Override Query visit(ComparisonNode node);  }