Class DefaultArtifactAstBuilder
java.lang.Object
org.mule.runtime.ast.internal.builder.DefaultArtifactAstBuilder
- All Implemented Interfaces:
ArtifactAstBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultArtifactAstBuilder(String artifactName, ArtifactType artifactType, Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels, Optional<ArtifactAst> parentArtifact, UnaryOperator<String> basePropertiesResolver, ExtensionModelHelper extModelHelper, ComponentLocationVisitor componentLocationVisitor, ParameterModelUtils parameterModelUtils) -
Method Summary
Modifier and TypeMethodDescriptionAdds a top-level component to the artifact being built with this builder.addTopLevelComponent(ComponentAst topLevelComponent) build()Builds the target artifact and its inner components.withImportedResource(ImportedResource resource) Adds a resource to be imported by the resultingArtifactAst.voidwithNamespaceDefinition(NamespaceDefinition namespaceDefinition) Adds aNamespaceDefinitionto the Artifact being built.
-
Constructor Details
-
DefaultArtifactAstBuilder
public DefaultArtifactAstBuilder(String artifactName, ArtifactType artifactType, Set<org.mule.runtime.api.meta.model.ExtensionModel> extensionsModels, Optional<ArtifactAst> parentArtifact, UnaryOperator<String> basePropertiesResolver, ExtensionModelHelper extModelHelper, ComponentLocationVisitor componentLocationVisitor, ParameterModelUtils parameterModelUtils)
-
-
Method Details
-
addTopLevelComponent
Description copied from interface:ArtifactAstBuilderAdds a top-level component to the artifact being built with this builder.- Specified by:
addTopLevelComponentin interfaceArtifactAstBuilder- Returns:
- the builder for the newly added top-level component
-
addTopLevelComponent
-
createMetadataBuilder
- Specified by:
createMetadataBuilderin interfaceArtifactAstBuilder- Returns:
- A properly configured
ComponentMetadataAstBuilderto use with this instance.
-
withNamespaceDefinition
Description copied from interface:ArtifactAstBuilderAdds aNamespaceDefinitionto the Artifact being built.- Specified by:
withNamespaceDefinitionin interfaceArtifactAstBuilder- Parameters:
namespaceDefinition- the namespace definition to be added.
-
withImportedResource
Description copied from interface:ArtifactAstBuilderAdds a resource to be imported by the resultingArtifactAst.- Specified by:
withImportedResourcein interfaceArtifactAstBuilder- Parameters:
resource- The resource to be imported by the resultingArtifactAst.- Returns:
- the same ast builder.
-
build
Description copied from interface:ArtifactAstBuilderBuilds the target artifact and its inner components.- Specified by:
buildin interfaceArtifactAstBuilder- Returns:
- the target artifact.
-