@Test void testVisitComparisonNodeEquals() { String selector = "name"; String argument = "piet"; ComparisonOperator operator = new ComparisonOperator("=="); ComparisonNode node = new ComparisonNode(operator, selector, singletonList(argument)); Query query = Query.builder().setItem(selector).setOperator(EQUALS).setValue(argument).build(); assertEquals(query, queryRsqlVisitor.visit(node)); }
@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);  }