public void visit(LogicNode node) { if (state != null) { throw new IllegalArgumentException("Logic expressions not supported in now expressions"); } for (LogicNode.NodeItem item : node.getItems()) { item.getNode().accept(this); } }
/** * Adds an (operator, node) pair to this expression. * * @param operator The operator that combines the previous with the node given. * @param node The node to add to this. * @return This, to allow chaining. */ public LogicNode add(String operator, ExpressionNode node) { items.add(new LogicNode.NodeItem(stringToOperator(operator), node)); return this; }
@Override public void visit(LogicNode logicNode) { for (LogicNode.NodeItem item : logicNode.getItems()) { item.getNode().accept(this); } }
public void visit(LogicNode node) { for (LogicNode.NodeItem item : node.getItems()) { item.getNode().accept(this); } }