public interface Visitor
For instance visiting using
Workflow.accept(Visitor) will call
visitEnter(WorkflowBean) with the workflow instance, followed by a
visit(WorkflowBean) on each
OutputWorkflowPort (which are leaf nodes). Further
visitEnter(WorkflowBean) will be called with a
Processor.accept(Visitor) will recurse to
The visitor can avoid visiting a branch of the workflow by returning
visitEnter(WorkflowBean), or cancel the
iteration over children by returning
|Modifier and Type||Interface and Description|
|Modifier and Type||Method and Description|
boolean visit(WorkflowBean node)
WorkflowBean.accept(Visitor)when the visited bean is a leaf node.
boolean visitEnter(WorkflowBean node)
WorkflowBean.accept(Visitor)when first visiting a bean which potentially has children.
boolean visitLeave(WorkflowBean node)
WorkflowBean.accept(Visitor)before leaving a bean previously visited with
visitEnter(WorkflowBean). This is called after all of the bean's children have been recursively visited, even if any of those aborted the visit by returning
node- the currently visited
falseif the visits over the current beans' siblings should continue,
falseto immediately leave the parent.
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.