public class ComponentAst extends Object
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().
| Constructor and Description |
|---|
ComponentAst(String componentId,
ComponentType componentType,
ExtensionModel extension,
ComponentGenerationInformation generationInformation,
ComponentIdentifier identifier,
ComponentLocation location,
SourceCodeLocation metadata,
Object model,
org.mule.metadata.api.model.MetadataType type,
List<ComponentParameterAst> parameters,
List<ComponentAst> directChildren) |
| Modifier and Type | Method and Description |
|---|---|
List<ComponentParameterAst> |
getAllParameters()
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.
|
Optional<String> |
getComponentId() |
ComponentType |
getComponentType() |
List<ComponentAst> |
getDirectChildren() |
ExtensionModel |
getExtension() |
ComponentGenerationInformation |
getGenerationInformation() |
ComponentIdentifier |
getIdentifier() |
ComponentLocation |
getLocation() |
SourceCodeLocation |
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 paramName) |
Map<String,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() |
public ComponentAst(String componentId, ComponentType componentType, ExtensionModel extension, ComponentGenerationInformation generationInformation, ComponentIdentifier identifier, ComponentLocation location, SourceCodeLocation metadata, Object model, org.mule.metadata.api.model.MetadataType type, List<ComponentParameterAst> parameters, List<ComponentAst> directChildren)
public ComponentIdentifier getIdentifier()
public ComponentType getComponentType()
public ComponentLocation getLocation()
public SourceCodeLocation getMetadata()
public ComponentGenerationInformation getGenerationInformation()
public Optional<String> getComponentId()
empty otherwise.public ExtensionModel getExtension()
public <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.public org.mule.metadata.api.model.MetadataType getType()
public ComponentParameterAst getParameter(String paramName)
paramName - the name of the parameter to get AST for.public List<ComponentParameterAst> getAllParameters()
public Map<String,ComponentParameterAst> getParameters()
public List<ComponentAst> getDirectChildren()
Stream for this component's children.Copyright © 2025 MuleSoft, Inc.. All rights reserved.