public class FilteredArtifactAst extends BaseArtifactAst
| Constructor and Description |
|---|
FilteredArtifactAst(ArtifactAst fullArtifactAst,
Predicate<ComponentAst> componentFilter) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.mule.runtime.api.meta.model.ExtensionModel> |
dependencies()
The way the dependencies are calculated depends on the
DependencyResolutionMode set. |
org.mule.runtime.api.exception.ErrorTypeRepository |
getErrorTypeRepository() |
Collection<ImportedResource> |
getImportedResources() |
Optional<ArtifactAst> |
getParent() |
Stream<ComponentAst> |
recursiveStream(AstTraversalDirection direction) |
List<ComponentAst> |
topLevelComponents() |
void |
updatePropertiesResolver(UnaryOperator<String> newPropertiesResolver)
Updates the mapping used to resolve property placeholders throughout the AST.
|
filteredComponents, recursiveSpliterator, recursiveSpliterator, recursiveStream, topLevelComponentsSpliterator, topLevelComponentsStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnamespaceDefinitionpublic FilteredArtifactAst(ArtifactAst fullArtifactAst, Predicate<ComponentAst> componentFilter)
public Set<org.mule.runtime.api.meta.model.ExtensionModel> dependencies()
ArtifactAstDependencyResolutionMode set.ExtensionModels this artifact depends on.public Optional<ArtifactAst> getParent()
ArtifactAst that is the parent of this artifact, if available.public Stream<ComponentAst> recursiveStream(AstTraversalDirection direction)
recursiveStream in interface ArtifactAstrecursiveStream in class BaseArtifactAstdirection - 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 List<ComponentAst> topLevelComponents()
List for the top-level components (i.e.: configs, flows) of the artifact represented by this AST.public void updatePropertiesResolver(UnaryOperator<String> newPropertiesResolver)
ArtifactAst
The received operator will transform a String containing keys surrounded with placeholder delimiters
(${}) to a String with those placeholders replaced with the appropriate property.
Bear in mind that a parameter resolved at one time may have a certain value, and resolving that parameter again after calling this method may yield another value.
newPropertiesResolver - the new resolver to use for the component parameters of this artifact.public Collection<ImportedResource> getImportedResources()
public org.mule.runtime.api.exception.ErrorTypeRepository getErrorTypeRepository()
getErrorTypeRepository in interface ArtifactAstgetErrorTypeRepository in class BaseArtifactAstCopyright © 2025 MuleSoft, Inc.. All rights reserved.