public enum AstTraversalDirection extends Enum<AstTraversalDirection>
| Enum Constant and Description |
|---|
BOTTOM_UP
Navigate the whole AST from top down.
|
TOP_DOWN
Navigate the whole AST from top down.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Spliterator<ComponentAst> |
recursiveSpliterator(ComponentAst component)
Creates a
Spliterator for a ComponentAst that travers through this ComponentAst and its children
recursively by current AstTraversalDirection. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
recursiveStreamWithHierarchy(Stream<ComponentAst> components)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
recursiveStreamWithHierarchy(Stream<ComponentAst> components,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
static AstTraversalDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AstTraversalDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AstTraversalDirection TOP_DOWN
e.g Given following ComponentAst:
Will navigate ComponentAst through:
public static final AstTraversalDirection BOTTOM_UP
e.g Given following ComponentAst:
Will navigate ComponentAst through:
public static AstTraversalDirection[] values()
for (AstTraversalDirection c : AstTraversalDirection.values()) System.out.println(c);
public static AstTraversalDirection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract Spliterator<ComponentAst> recursiveSpliterator(ComponentAst component)
Spliterator for a ComponentAst that travers through this ComponentAst and its children
recursively by current AstTraversalDirection.component - the ComponentAst to navigate.Spliterator for this component and its children recursively that navigates the whole AST by current
AstTraversalDirection.public Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> recursiveStreamWithHierarchy(Stream<ComponentAst> components)
Stream by adding hierarchy context to each ComponentAst.
The Stream is traversed in AstTraversalDirection direction
The elements of the Stream are Pairs:
ArtifactAst.recursiveStream().public Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> recursiveStreamWithHierarchy(Stream<ComponentAst> components, boolean ignoreParameterComplexValues)
Stream by adding hierarchy context to each ComponentAst.
The Stream is traversed in AstTraversalDirection direction
The elements of the Stream are Pairs:
ArtifactAst.recursiveStream().public Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors)
Stream by adding hierarchy context to each ComponentAst.
The Stream is traversed in AstTraversalDirection direction
The elements of the Stream are Pairs:
ArtifactAst.recursiveStream().components - the Stream to enrich.commonAncestors - any ComponentAst hierarchy that is common for all the components in the provided
components.Stream with hierarchy context.public Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors, boolean ignoreParameterComplexValues)
Stream by adding hierarchy context to each ComponentAst.
The Stream is traversed in AstTraversalDirection direction
The elements of the Stream are Pairs:
ArtifactAst.recursiveStream().components - the Stream to enrich.commonAncestors - any ComponentAst hierarchy that is common for all the components in the provided
components.ignoreParameterComplexValues - whether the returned Stream will contain any complex values in component
parameters.Stream with hierarchy context.Copyright © 2025 MuleSoft, Inc.. All rights reserved.