public Object visit(ASTAdd node, Object data) throws VisitorException { return node.childrenAccept(this, data); }
@Override public AddGraph visit(final ASTAdd node, final Object data) throws VisitorException { final AddGraph op = new AddGraph(); if (node.isSilent()) op.setSilent(true); final ASTGraphOrDefault sourceNode = (ASTGraphOrDefault) node .jjtGetChild(0); if (sourceNode.jjtGetNumChildren() > 0) { final ConstantNode sourceGraph = (ConstantNode) sourceNode .jjtGetChild(0).jjtAccept(this, data); op.setSourceGraph(sourceGraph); } final ASTGraphOrDefault targetNode = (ASTGraphOrDefault) node .jjtGetChild(1); if (targetNode.jjtGetNumChildren() > 0) { final ConstantNode targetGraph = (ConstantNode) targetNode .jjtGetChild(0).jjtAccept(this, data); op.setTargetGraph(targetGraph); } return op; }
@Override public AddGraph visit(final ASTAdd node, final Object data) throws VisitorException { final AddGraph op = new AddGraph(); if (node.isSilent()) op.setSilent(true); final ASTGraphOrDefault sourceNode = (ASTGraphOrDefault) node .jjtGetChild(0); if (sourceNode.jjtGetNumChildren() > 0) { final ConstantNode sourceGraph = (ConstantNode) sourceNode .jjtGetChild(0).jjtAccept(this, data); op.setSourceGraph(sourceGraph); } final ASTGraphOrDefault targetNode = (ASTGraphOrDefault) node .jjtGetChild(1); if (targetNode.jjtGetNumChildren() > 0) { final ConstantNode targetGraph = (ConstantNode) targetNode .jjtGetChild(0).jjtAccept(this, data); op.setTargetGraph(targetGraph); } return op; }
public Object visit(ASTAdd node, Object data) throws VisitorException { return node.childrenAccept(this, data); }