public interface ComponentAst
Every ComponentAst represents the configuration of a core configuration or an extension configuration. Which
configuration element this object represents is identified by a ComponentIdentifier that can be retrieved using
#getIdentifier().
| Modifier and Type | Method and Description |
|---|---|
List<ComponentAst> |
directChildren()
This method will NOT traverse any complex parameters this component has.
|
Spliterator<ComponentAst> |
directChildrenSpliterator()
This method will NOT traverse any complex parameters this component has.
|
Stream<ComponentAst> |
directChildrenStream() |
Map<String,Object> |
getAnnotations()
An annotation is defined by the DSL processor that creates the instances of
ComponentAst. |
Optional<String> |
getComponentId() |
org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType |
getComponentType() |
org.mule.runtime.api.meta.model.ExtensionModel |
getExtensionModel() |
ComponentGenerationInformation |
getGenerationInformation() |
org.mule.runtime.api.component.ComponentIdentifier |
getIdentifier() |
org.mule.runtime.api.component.location.ComponentLocation |
getLocation() |
ComponentMetadataAst |
getMetadata() |
<M> Optional<M> |
getModel(Class<M> modelClass)
A component may be represented by different kinds of models, depending on the actual type of this component.
|
ComponentParameterAst |
getParameter(String groupName,
String paramName) |
Collection<ComponentParameterAst> |
getParameters()
A parameter may have a value either because it is explicitly set in the DSL, or because the extension model defines a default
value for it.
|
org.mule.metadata.api.model.MetadataType |
getType() |
Spliterator<ComponentAst> |
recursiveSpliterator()
This method will also traverse the complex parameters in each component.
|
Spliterator<ComponentAst> |
recursiveSpliterator(AstTraversalDirection direction)
This method will also traverse the complex parameters in each component.
|
Stream<ComponentAst> |
recursiveStream()
This method will also traverse the complex parameters in each component.
|
Stream<ComponentAst> |
recursiveStream(AstTraversalDirection direction)
This method will also traverse the complex parameters in each component.
|
org.mule.runtime.api.component.ComponentIdentifier getIdentifier()
org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType getComponentType()
org.mule.runtime.api.component.location.ComponentLocation getLocation()
ComponentMetadataAst getMetadata()
ComponentGenerationInformation getGenerationInformation()
Optional<String> getComponentId()
empty otherwise.Map<String,Object> getAnnotations()
ComponentAst.Map containing the annotations for this component.org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()
<M> Optional<M> getModel(Class<M> modelClass)
ConfigurationModel, ComponentModel or ConnectionProviderModel (but
not necessarily limited to those).modelClass - the class of the model this method should return.org.mule.metadata.api.model.MetadataType getType()
ComponentParameterAst getParameter(String groupName, String paramName)
groupName - the name of the parameterGroup to get AST for.paramName - the name of the parameter to get AST for.groupName and paramName.Collection<ComponentParameterAst> getParameters()
Stream<ComponentAst> recursiveStream()
Stream for this component and its children recursively that navigates the whole AST using TOP_DOWN
direction.Stream<ComponentAst> recursiveStream(AstTraversalDirection direction)
direction - 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}.Spliterator<ComponentAst> recursiveSpliterator()
Spliterator for this component and its children recursively that navigates the whole AST using
TOP_DOWN direction.Spliterator<ComponentAst> recursiveSpliterator(AstTraversalDirection direction)
direction - 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}.List<ComponentAst> directChildren()
List for this component's children.Stream<ComponentAst> directChildrenStream()
Stream for this component's children.Spliterator<ComponentAst> directChildrenSpliterator()
Spliterator for this component's children.Copyright © 2025 MuleSoft, Inc.. All rights reserved.