public abstract class BaseArtifactAst extends Object implements ArtifactAst
ArtifactAst.
Extending classes need only implement ArtifactAst.topLevelComponents(), and the values returned by the other methods are derived
from it.
| Constructor and Description |
|---|
BaseArtifactAst() |
| Modifier and Type | Method and Description |
|---|---|
Stream<ComponentAst> |
filteredComponents(Predicate<ComponentAst> predicate)
Given a
Predicate, navigates the whole AST looking for all ComponentAsts satisfied by the provided
Predicate
Check ComponentAstPredicatesFactory, there are several Predicate already
defined. |
org.mule.runtime.api.exception.ErrorTypeRepository |
getErrorTypeRepository() |
Spliterator<ComponentAst> |
recursiveSpliterator() |
Spliterator<ComponentAst> |
recursiveSpliterator(AstTraversalDirection direction) |
Stream<ComponentAst> |
recursiveStream() |
Stream<ComponentAst> |
recursiveStream(AstTraversalDirection direction) |
Spliterator<ComponentAst> |
topLevelComponentsSpliterator() |
Stream<ComponentAst> |
topLevelComponentsStream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdependencies, getImportedResources, getParent, namespaceDefinition, topLevelComponents, updatePropertiesResolverpublic Stream<ComponentAst> topLevelComponentsStream()
topLevelComponentsStream in interface ArtifactAstStream for the top-level components (i.e.: configs, flows) of the artifact represented by this AST.public Spliterator<ComponentAst> topLevelComponentsSpliterator()
topLevelComponentsSpliterator in interface ArtifactAstSpliterator for the top-level components (i.e.: configs, flows) of the artifact represented by this AST.public Spliterator<ComponentAst> recursiveSpliterator(AstTraversalDirection direction)
recursiveSpliterator in interface ArtifactAstdirection - the @{link AstTraversalDirection} used to navigate the whole AST.Spliterator for this component and its children recursively that navigates the whole AST using the
given @{code direction}.public Spliterator<ComponentAst> recursiveSpliterator()
recursiveSpliterator in interface ArtifactAstSpliterator for this component and its children recursively that navigates the whole AST using
TOP_DOWN direction.public Stream<ComponentAst> recursiveStream(AstTraversalDirection direction)
recursiveStream in interface ArtifactAstdirection - the @{link AstTraversalDirection} used to navigate the whole AST.Stream for this component and its children recursively that navigates the whole AST using the given @{code
direction}.public Stream<ComponentAst> recursiveStream()
recursiveStream in interface ArtifactAstStream for this component and its children recursively that navigates the whole AST using TOP_DOWN
direction.public Stream<ComponentAst> filteredComponents(Predicate<ComponentAst> predicate)
ArtifactAstPredicate, navigates the whole AST looking for all ComponentAsts satisfied by the provided
Predicate
Check ComponentAstPredicatesFactory, there are several Predicate already
defined.
filteredComponents in interface ArtifactAstpredicate - the Predicate to test.Stream filtering ComponentAst that satisfied the predicate.public org.mule.runtime.api.exception.ErrorTypeRepository getErrorTypeRepository()
getErrorTypeRepository in interface ArtifactAstCopyright © 2025 MuleSoft, Inc.. All rights reserved.