@Override protected String visitBetweenPredicate( final BetweenPredicate node, final Boolean unmangleNames) { return "(" + process(node.getValue(), unmangleNames) + " BETWEEN " + process(node.getMin(), unmangleNames) + " AND " + process(node.getMax(), unmangleNames) + ")"; }
@Override protected R visitBetweenPredicate(final BetweenPredicate node, final C context) { process(node.getValue(), context); process(node.getMin(), context); process(node.getMax(), context); return null; }
@Override protected R visitBetweenPredicate(final BetweenPredicate node, final C context) { process(node.getValue(), context); process(node.getMin(), context); process(node.getMax(), context); return null; }
protected Node visitBetweenPredicate(final BetweenPredicate node, final Object context) { // use an if/else block here (instead of isPresent.map(...).orElse(...)) so only one object // gets instantiated (issue #1784) if (node.getLocation().isPresent()) { return new BetweenPredicate(node.getLocation().get(), (Expression) process(node.getValue(), context), (Expression) process(node.getMin(), context), (Expression) process(node.getMax(), context)); } else { return new BetweenPredicate((Expression) process(node.getValue(), context), (Expression) process(node.getMin(), context), (Expression) process(node.getMax(), context)); } }
@Override protected Node visitBetweenPredicate(final BetweenPredicate node, final Node parent) { node.setParent(parent); process(node.getValue(), node); process(node.getMin(), node); process(node.getMax(), node); return null; }