Class DefaultComponentAstBuilder
java.lang.Object
org.mule.runtime.ast.internal.builder.BaseComponentAstBuilder<DefaultComponentAstBuilder>
org.mule.runtime.ast.internal.builder.DefaultComponentAstBuilder
- All Implemented Interfaces:
Supplier<ComponentAst>,ComponentAstBuilder
-
Field Summary
Fields inherited from class org.mule.runtime.ast.internal.builder.BaseComponentAstBuilder
BODY_RAW_PARAM_NAME, componentId, SOURCE_TYPE, TARGET_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultComponentAstBuilder(PropertiesResolver propertiesResolver, ExtensionModelHelper extModelHelper, List<DefaultComponentAstBuilder> hierarchy, int indexInParent, ComponentLocationVisitor componentLocationVisitor, ParameterModelUtils parameterModelUtils) -
Method Summary
Modifier and TypeMethodDescriptionAdds a child component to the component being built with this builder.build()Builds the target component and its children.get()intorg.mule.runtime.api.component.location.ComponentLocationobtainLocation(Map<ParameterKey, ComponentParameterAst> parameterAsts) voidwithIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier) Methods inherited from class org.mule.runtime.ast.internal.builder.BaseComponentAstBuilder
addChildComponent, childComponentsStream, createParameterAsts, doRemoveParamChild, getAnnotations, getComponentId, getComponentType, getExtensionModel, getGenerationInformation, getIdentifier, getMetadata, getModel, getParameterModelUtils, getParamsChildren, getPropertiesResolver, getRawParameters, getType, removeChildComponent, removeParamChild, resolveComponentId, setComponentId, validateSingleModelSet, withAnnotation, withBodyParameter, withComponentModel, withComponentType, withConfigurationModel, withConnectionProviderModel, withExtensionModel, withLocation, withMetadata, withNestableElementModel, withParameter, withParameter, withParameterizedModel, withRawParameter
-
Constructor Details
-
DefaultComponentAstBuilder
public DefaultComponentAstBuilder(PropertiesResolver propertiesResolver, ExtensionModelHelper extModelHelper, List<DefaultComponentAstBuilder> hierarchy, int indexInParent, ComponentLocationVisitor componentLocationVisitor, ParameterModelUtils parameterModelUtils)
-
-
Method Details
-
addChildComponent
Description copied from interface:ComponentAstBuilderAdds a child component to the component being built with this builder.- Returns:
- the builder for the newly added child component
-
withIdentifier
public ComponentAstBuilder withIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier) - Specified by:
withIdentifierin interfaceComponentAstBuilder- Overrides:
withIdentifierin classBaseComponentAstBuilder<DefaultComponentAstBuilder>- Parameters:
identifier- the identifier for the configuration element this object represents.- Returns:
- this builder
-
get
-
build
Description copied from interface:ComponentAstBuilderBuilds the target component and its children.- Returns:
- the target component
-
prepareForBuild
public void prepareForBuild()- Overrides:
prepareForBuildin classBaseComponentAstBuilder<DefaultComponentAstBuilder>
-
getLocation
public org.mule.runtime.api.component.location.ComponentLocation getLocation()- Overrides:
getLocationin classBaseComponentAstBuilder<DefaultComponentAstBuilder>
-
obtainLocation
protected Supplier<Optional<String>> obtainLocation(Map<ParameterKey, ComponentParameterAst> parameterAsts) -
getIndexInParent
public int getIndexInParent()
-