Package org.mule.runtime.cfg.api
Interface ChainExecutionPathTree
@Experimental
@NoImplement
public interface ChainExecutionPathTree
Control Flow Graph (Or execution path tree) that models the execution of a flow, Mule SDK Operation, entire application, or
subchain within a Mule Application. This tree can be traversed using the
ChainExecutionPathTreeVisitor.- Since:
- 1.1.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ChainExecutionPathTreeVisitor visitor) Navigates this tree.booleanallExecutionPathsContain(Predicate<ChainExecutionPathTree> predicate) booleananyExecutionPathContains(Predicate<ChainExecutionPathTree> predicate) default List<ChainExecutionPathTree>children()org.mule.runtime.ast.api.ComponentAstdefault Optional<org.mule.runtime.api.meta.model.ComponentModel>default boolean
-
Method Details
-
accept
Navigates this tree.For each item of interest in this tree, a method from the provided
ChainExecutionPathTreeVisitorwill be called. The order of the called methods is consistent and depends on the definition of the chain.The provided
visitoris expected to keep internal state for storing the results of the navigation. So, this method is thread safe but theChainExecutionPathTreeVisitorneed not be (nor should be reused, even if used sequentially).- Parameters:
visitor- a visitor that will have its methods called as different items are found while navigating the tree.
-
getOwnerModel
- Returns:
- the
ComponentModelfor the component this subtree belongs to, if available. - Since:
- 1.6
-
getComponentAst
org.mule.runtime.ast.api.ComponentAst getComponentAst()- Returns:
- the
ComponentAstthat this subtree of the tree represents.
-
anyExecutionPathContains
- Parameters:
predicate-- Returns:
- if any possible path of the execution has a
ComponentAstthat makes the returntrue.
-
allExecutionPathsContain
- Parameters:
predicate-- Returns:
- if all the possible paths of the execution have a
ComponentAstthat makes the returntrue.
-
noneExecutionPathsContains
- Parameters:
predicate-- Returns:
- if none of the possible paths of the execution have a
ComponentAstthat makes thetrue.
-
children
- Returns:
- a
Listwith the children of thisChainExecutionPathTree. - Since:
- 1.4
-