public abstract class BaseComponentAstDecorator extends Object implements ComponentAst
ComponentAst interface, to minimize the effort required to
implement this interface when decorating instances of ComponentAst.| Constructor and Description |
|---|
BaseComponentAstDecorator(ComponentAst decorated)
Creates a new decorator for the provided instance.
|
| 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() |
protected ComponentAst |
getDecorated() |
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.
|
String |
toString() |
public BaseComponentAstDecorator(ComponentAst decorated)
decorated - the ComponentAst instance to decorate.protected ComponentAst getDecorated()
ComponentAst instance.public Stream<ComponentAst> recursiveStream(AstTraversalDirection direction)
ComponentAstrecursiveStream in interface ComponentAstdirection - 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()
ComponentAstrecursiveStream in interface ComponentAstStream for this component and its children recursively that navigates the whole AST using TOP_DOWN
direction.public Spliterator<ComponentAst> recursiveSpliterator()
ComponentAstrecursiveSpliterator in interface ComponentAstSpliterator for this component and its children recursively that navigates the whole AST using
TOP_DOWN direction.public Spliterator<ComponentAst> recursiveSpliterator(AstTraversalDirection direction)
ComponentAstrecursiveSpliterator in interface ComponentAstdirection - 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 List<ComponentAst> directChildren()
ComponentAstdirectChildren in interface ComponentAstList for this component's children.public Stream<ComponentAst> directChildrenStream()
directChildrenStream in interface ComponentAstStream for this component's children.public Spliterator<ComponentAst> directChildrenSpliterator()
ComponentAstdirectChildrenSpliterator in interface ComponentAstSpliterator for this component's children.public Collection<ComponentParameterAst> getParameters()
ComponentAstgetParameters in interface ComponentAstpublic ComponentParameterAst getParameter(String groupName, String paramName)
getParameter in interface ComponentAstgroupName - the name of the parameterGroup to get AST for.paramName - the name of the parameter to get AST for.groupName and paramName.public org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()
getExtensionModel in interface ComponentAstpublic <M> Optional<M> getModel(Class<M> modelClass)
ComponentAstConfigurationModel, ComponentModel or ConnectionProviderModel (but
not necessarily limited to those).getModel in interface ComponentAstmodelClass - the class of the model this method should return.public org.mule.metadata.api.model.MetadataType getType()
getType in interface ComponentAstpublic Map<String,Object> getAnnotations()
ComponentAstComponentAst.getAnnotations in interface ComponentAstMap containing the annotations for this component.public ComponentMetadataAst getMetadata()
getMetadata in interface ComponentAstpublic org.mule.runtime.api.component.location.ComponentLocation getLocation()
getLocation in interface ComponentAstpublic org.mule.runtime.api.component.ComponentIdentifier getIdentifier()
getIdentifier in interface ComponentAstpublic org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType getComponentType()
getComponentType in interface ComponentAstpublic Optional<String> getComponentId()
getComponentId in interface ComponentAstempty otherwise.public ComponentGenerationInformation getGenerationInformation()
getGenerationInformation in interface ComponentAstCopyright © 2025 MuleSoft, Inc.. All rights reserved.