public final class DefaultArtifactAst extends BaseArtifactAst
| Constructor and Description |
|---|
DefaultArtifactAst(List<ComponentAst> topLevelComponents,
Supplier<Set<org.mule.runtime.api.meta.model.ExtensionModel>> dependenciesSupplier,
ArtifactAst parentArtifact,
PropertiesResolver propertiesResolver,
NamespaceDefinition namespaceDefinition,
List<ImportedResource> importedResources) |
| 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. |
Collection<ImportedResource> |
getImportedResources() |
Optional<ArtifactAst> |
getParent() |
NamespaceDefinition |
namespaceDefinition() |
List<ComponentAst> |
topLevelComponents() |
void |
updatePropertiesResolver(UnaryOperator<String> newPropertiesResolver)
Updates the mapping used to resolve property placeholders throughout the AST.
|
filteredComponents, getErrorTypeRepository, recursiveSpliterator, recursiveSpliterator, recursiveStream, recursiveStream, topLevelComponentsSpliterator, topLevelComponentsStreampublic DefaultArtifactAst(List<ComponentAst> topLevelComponents, Supplier<Set<org.mule.runtime.api.meta.model.ExtensionModel>> dependenciesSupplier, ArtifactAst parentArtifact, PropertiesResolver propertiesResolver, NamespaceDefinition namespaceDefinition, List<ImportedResource> importedResources)
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 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 NamespaceDefinition namespaceDefinition()
NamespaceDefinition that represents the namespace definition of this artifact.public Collection<ImportedResource> getImportedResources()
Copyright © 2025 MuleSoft, Inc.. All rights reserved.