package org.whole.lang.flowchart.visitors; import org.whole.lang.flowchart.visitors.FlowchartIdentityUnaryVisitor; import org.whole.lang.flowchart.visitors.IFlowchartVisitor; import org.whole.lang.flowchart.model.*; import org.whole.lang.visitors.IVisitor; /** * @generator Whole */ public class FlowchartTraverseAllVisitor extends FlowchartIdentityUnaryVisitor<IFlowchartVisitor> { public FlowchartTraverseAllVisitor() { wSetVisitor1(this); } public FlowchartTraverseAllVisitor(IVisitor visitor1) { super(visitor1); } public void visit(Flowchart entity) { entity.getNodes().accept(wGetVisitor1()); entity.getTransitions().accept(wGetVisitor1()); } public void visit(Nodes entity) { for (Node child : entity) child.accept(wGetVisitor1()); } public void visit(Transitions entity) { for (Transition child : entity) child.accept(wGetVisitor1()); } public void visit(Transition entity) { entity.getSource().accept(wGetVisitor1()); entity.getTarget().accept(wGetVisitor1()); } public void visit(SimpleTransition entity) { entity.getSource().accept(wGetVisitor1()); entity.getTarget().accept(wGetVisitor1()); } public void visit(LabeledTransition entity) { entity.getLabel().accept(wGetVisitor1()); entity.getSource().accept(wGetVisitor1()); entity.getTarget().accept(wGetVisitor1()); } public void visit(Node entity) { entity.getX().accept(wGetVisitor1()); entity.getY().accept(wGetVisitor1()); entity.getWidth().accept(wGetVisitor1()); entity.getHeight().accept(wGetVisitor1()); entity.getDescription().accept(wGetVisitor1()); } public void visit(Entry entity) { entity.getX().accept(wGetVisitor1()); entity.getY().accept(wGetVisitor1()); entity.getWidth().accept(wGetVisitor1()); entity.getHeight().accept(wGetVisitor1()); entity.getDescription().accept(wGetVisitor1()); entity.getSourceTransition().accept(wGetVisitor1()); } public void visit(Exit entity) { entity.getX().accept(wGetVisitor1()); entity.getY().accept(wGetVisitor1()); entity.getWidth().accept(wGetVisitor1()); entity.getHeight().accept(wGetVisitor1()); entity.getDescription().accept(wGetVisitor1()); entity.getTargetTransition().accept(wGetVisitor1()); } public void visit(Block entity) { entity.getX().accept(wGetVisitor1()); entity.getY().accept(wGetVisitor1()); entity.getWidth().accept(wGetVisitor1()); entity.getHeight().accept(wGetVisitor1()); entity.getDescription().accept(wGetVisitor1()); entity.getTargetTransition().accept(wGetVisitor1()); entity.getSourceTransition().accept(wGetVisitor1()); } public void visit(Choice entity) { entity.getX().accept(wGetVisitor1()); entity.getY().accept(wGetVisitor1()); entity.getWidth().accept(wGetVisitor1()); entity.getHeight().accept(wGetVisitor1()); entity.getDescription().accept(wGetVisitor1()); entity.getTargetTransition().accept(wGetVisitor1()); entity.getTrueSourceTransition().accept(wGetVisitor1()); entity.getFalseSourceTransition().accept(wGetVisitor1()); } public void visit(Join entity) { entity.getX().accept(wGetVisitor1()); entity.getY().accept(wGetVisitor1()); entity.getWidth().accept(wGetVisitor1()); entity.getHeight().accept(wGetVisitor1()); entity.getDescription().accept(wGetVisitor1()); entity.getTargetTransitions().accept(wGetVisitor1()); entity.getSourceTransition().accept(wGetVisitor1()); } }