| Modifier and Type | Method and Description |
|---|---|
List<ComponentAst> |
ComponentAst.directChildren()
This method will NOT traverse any complex parameters this component has.
|
Spliterator<ComponentAst> |
ComponentAst.directChildrenSpliterator()
This method will NOT traverse any complex parameters this component has.
|
Stream<ComponentAst> |
ComponentAst.directChildrenStream() |
Stream<ComponentAst> |
ArtifactAst.filteredComponents(Predicate<ComponentAst> predicate)
Given a
Predicate, navigates the whole AST looking for all ComponentAsts satisfied by the provided
Predicate
Check ComponentAstPredicatesFactory, there are several Predicate already
defined. |
Spliterator<ComponentAst> |
ArtifactAst.recursiveSpliterator() |
Spliterator<ComponentAst> |
ComponentAst.recursiveSpliterator()
This method will also traverse the complex parameters in each component.
|
Spliterator<ComponentAst> |
ArtifactAst.recursiveSpliterator(AstTraversalDirection direction) |
Spliterator<ComponentAst> |
ComponentAst.recursiveSpliterator(AstTraversalDirection direction)
This method will also traverse the complex parameters in each component.
|
Stream<ComponentAst> |
ArtifactAst.recursiveStream() |
Stream<ComponentAst> |
ComponentAst.recursiveStream()
This method will also traverse the complex parameters in each component.
|
Stream<ComponentAst> |
ArtifactAst.recursiveStream(AstTraversalDirection direction) |
Stream<ComponentAst> |
ComponentAst.recursiveStream(AstTraversalDirection direction)
This method will also traverse the complex parameters in each component.
|
List<ComponentAst> |
ArtifactAst.topLevelComponents() |
Spliterator<ComponentAst> |
ArtifactAst.topLevelComponentsSpliterator() |
Stream<ComponentAst> |
ArtifactAst.topLevelComponentsStream() |
| Modifier and Type | Method and Description |
|---|---|
Stream<ComponentAst> |
ArtifactAst.filteredComponents(Predicate<ComponentAst> predicate)
Given a
Predicate, navigates the whole AST looking for all ComponentAsts satisfied by the provided
Predicate
Check ComponentAstPredicatesFactory, there are several Predicate already
defined. |
| Modifier and Type | Method and Description |
|---|---|
ComponentAst |
ComponentAstBuilder.build()
Builds the target component and its children.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseComponentAst
Base implementation of
ComponentAst. |
class |
BaseComponentAstDecorator
This class provides a skeletal implementation of the
ComponentAst interface, to minimize the effort required to
implement this interface when decorating instances of ComponentAst. |
| Modifier and Type | Method and Description |
|---|---|
static ComponentAst |
MuleArtifactAstCopyUtils.copyComponentTreeRecursively(ComponentAst source,
UnaryOperator<ComponentAst> componentMapper)
Copies and transforms a given
ComponentAst, mapping it and its children ComponentAst instances recursively
with the provided compoenentMapper function. |
protected ComponentAst |
BaseComponentAstDecorator.getDecorated() |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<List<ComponentAst>> |
ComponentAstPredicatesFactory.currentElemement(Predicate<ComponentAst> currentElementPredicate)
Filter a component hierarchy by evaluating the provided component against the last hierarchy element.
|
List<ComponentAst> |
BaseComponentAstDecorator.directChildren() |
Spliterator<ComponentAst> |
BaseComponentAstDecorator.directChildrenSpliterator() |
Spliterator<ComponentAst> |
BaseComponentAst.directChildrenSpliterator() |
Stream<ComponentAst> |
BaseComponentAstDecorator.directChildrenStream() |
Stream<ComponentAst> |
BaseComponentAst.directChildrenStream() |
static Predicate<ComponentAst> |
ComponentAstPredicatesFactory.equalsComponentId(String componentId)
|
static Predicate<ComponentAst> |
ComponentAstPredicatesFactory.equalsIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier)
Filter
ComponentAst with equals ComponentIdentifier |
static Predicate<ComponentAst> |
ComponentAstPredicatesFactory.equalsLocation(org.mule.runtime.api.component.location.ComponentLocation location)
Filter
ComponentAst with equals ComponentLocation |
static Predicate<ComponentAst> |
ComponentAstPredicatesFactory.equalsNamespace(String namespace)
Filter
ComponentAst with equals identifier namespace |
Stream<ComponentAst> |
BaseArtifactAst.filteredComponents(Predicate<ComponentAst> predicate) |
Spliterator<ComponentAst> |
BaseComponentAstDecorator.recursiveSpliterator() |
Spliterator<ComponentAst> |
BaseComponentAst.recursiveSpliterator() |
Spliterator<ComponentAst> |
BaseArtifactAst.recursiveSpliterator() |
Spliterator<ComponentAst> |
BaseComponentAstDecorator.recursiveSpliterator(AstTraversalDirection direction) |
Spliterator<ComponentAst> |
BaseComponentAst.recursiveSpliterator(AstTraversalDirection direction) |
Spliterator<ComponentAst> |
BaseArtifactAst.recursiveSpliterator(AstTraversalDirection direction) |
abstract Spliterator<ComponentAst> |
AstTraversalDirection.recursiveSpliterator(ComponentAst component)
Creates a
Spliterator for a ComponentAst that travers through this ComponentAst and its children
recursively by current AstTraversalDirection. |
Stream<ComponentAst> |
BaseComponentAstDecorator.recursiveStream() |
Stream<ComponentAst> |
BaseComponentAst.recursiveStream() |
Stream<ComponentAst> |
BaseArtifactAst.recursiveStream() |
Stream<ComponentAst> |
BaseComponentAstDecorator.recursiveStream(AstTraversalDirection direction) |
Stream<ComponentAst> |
BaseComponentAst.recursiveStream(AstTraversalDirection direction) |
Stream<ComponentAst> |
BaseArtifactAst.recursiveStream(AstTraversalDirection direction) |
static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact)
Similar to
ArtifactAst.recursiveStream(), but it enhances the Stream by adding hierarchy context to each
item. |
static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact)
Similar to
ArtifactAst.recursiveStream(), but it enhances the Stream by adding hierarchy context to each
item. |
static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact,
AstTraversalDirection direction)
Similar to
ArtifactAst.recursiveStream(), but it enhances the Stream by adding hierarchy context to each
item. |
static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact,
AstTraversalDirection direction)
Similar to
ArtifactAst.recursiveStream(), but it enhances the Stream by adding hierarchy context to each
item. |
static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact,
AstTraversalDirection direction,
boolean ignoreParameterComplexValues)
Similar to
ArtifactAst.recursiveStream(), but it enhances the Stream by adding hierarchy context to each
item. |
static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact,
AstTraversalDirection direction,
boolean ignoreParameterComplexValues)
Similar to
ArtifactAst.recursiveStream(), but it enhances the Stream by adding hierarchy context to each
item. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
static Set<ComponentAst> |
MuleAstUtils.resolveOrphanComponents(ArtifactAst appModel)
Given an
ArtifactAst, return all those components within it that are not accessible from a top-level component. |
Spliterator<ComponentAst> |
BaseArtifactAst.topLevelComponentsSpliterator() |
Stream<ComponentAst> |
BaseArtifactAst.topLevelComponentsStream() |
static Predicate<List<ComponentAst>> |
ComponentAstPredicatesFactory.topLevelElement()
Filter component hierarchies that represent just a top-level component.
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentAst |
MuleArtifactAstCopyUtils.copyComponentTreeRecursively(ComponentAst source,
UnaryOperator<ComponentAst> componentMapper)
Copies and transforms a given
ComponentAst, mapping it and its children ComponentAst instances recursively
with the provided compoenentMapper function. |
static Optional<ComponentParameterAst> |
MuleAstUtils.parameterOfType(ComponentAst referent,
org.mule.runtime.api.meta.model.stereotype.StereotypeModel referenceStereotype)
Given a
ComponentAst, lookup for a parameter that references an object with a certain stereotype. |
static List<ComponentParameterAst> |
MuleAstUtils.parametersOfType(ComponentAst referent,
org.mule.runtime.api.meta.model.stereotype.StereotypeModel referenceStereotype)
Given a
ComponentAst, lookup for all parameters that reference an object with a certain stereotype. |
abstract Spliterator<ComponentAst> |
AstTraversalDirection.recursiveSpliterator(ComponentAst component)
Creates a
Spliterator for a ComponentAst that travers through this ComponentAst and its children
recursively by current AstTraversalDirection. |
| Modifier and Type | Method and Description |
|---|---|
static ComponentAst |
MuleArtifactAstCopyUtils.copyComponentTreeRecursively(ComponentAst source,
UnaryOperator<ComponentAst> componentMapper)
Copies and transforms a given
ComponentAst, mapping it and its children ComponentAst instances recursively
with the provided compoenentMapper function. |
static ArtifactAst |
MuleArtifactAstCopyUtils.copyRecursively(ArtifactAst source,
UnaryOperator<ComponentAst> componentMapper)
Copies and transforms a given
ArtifactAst, mapping its internal ComponentAst instances with the provided
compoenentMapper function. |
static ArtifactAst |
MuleArtifactAstCopyUtils.copyRecursively(ArtifactAst source,
UnaryOperator<ComponentAst> componentMapper,
Supplier<List<ComponentAst>> topLeveltoAdd,
Predicate<ComponentAst> topLevelToRemove)
Copies and transforms a given
ArtifactAst, mapping its internal ComponentAst instances with the provided
compoenentMapper function. |
static ArtifactAst |
MuleArtifactAstCopyUtils.copyRecursively(ArtifactAst source,
UnaryOperator<ComponentAst> componentMapper,
Supplier<List<ComponentAst>> topLeveltoAdd,
Predicate<ComponentAst> topLevelToRemove)
Copies and transforms a given
ArtifactAst, mapping its internal ComponentAst instances with the provided
compoenentMapper function. |
static ArtifactAst |
MuleArtifactAstCopyUtils.copyRecursively(ArtifactAst source,
UnaryOperator<ComponentAst> componentMapper,
Supplier<List<ComponentAst>> topLeveltoAdd,
Predicate<ComponentAst> topLevelToRemove)
Copies and transforms a given
ArtifactAst, mapping its internal ComponentAst instances with the provided
compoenentMapper function. |
static Predicate<List<ComponentAst>> |
ComponentAstPredicatesFactory.currentElemement(Predicate<ComponentAst> currentElementPredicate)
Filter a component hierarchy by evaluating the provided component against the last hierarchy element.
|
static void |
MuleAstUtils.doOnParamComponents(ComponentParameterAst param,
Consumer<ComponentAst> action)
Performs a given action on the
ComponentAsts that form the value of the provided parameter. |
Stream<ComponentAst> |
BaseArtifactAst.filteredComponents(Predicate<ComponentAst> predicate) |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> |
AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components,
List<ComponentAst> commonAncestors,
boolean ignoreParameterComplexValues)
Enhances the
Stream by adding hierarchy context to each ComponentAst. |
| Constructor and Description |
|---|
BaseComponentAstDecorator(ComponentAst decorated)
Creates a new decorator for the provided instance.
|
| Modifier and Type | Method and Description |
|---|---|
Predicate<List<ComponentAst>> |
Validation.applicable()
Determines if this validation has to be applied to a given component.
|
List<ComponentAst> |
ValidationResultItem.getComponents() |
| Modifier and Type | Method and Description |
|---|---|
static ValidationResultItem |
ValidationResultItem.create(ComponentAst component,
ComponentParameterAst parameter,
Validation validation,
String message) |
static ValidationResultItem |
ValidationResultItem.create(ComponentAst component,
List<ComponentParameterAst> parameters,
Validation validation,
String message) |
static ValidationResultItem |
ValidationResultItem.create(ComponentAst component,
Validation validation,
String message) |
Optional<ValidationResultItem> |
Validation.validate(ComponentAst component,
ArtifactAst artifact)
Runs this validation in the provided component.
|
| Modifier and Type | Method and Description |
|---|---|
static ValidationResultItem |
ValidationResultItem.create(List<ComponentAst> components,
List<ComponentParameterAst> parameters,
Validation validation,
String message) |
static ValidationResultItem |
ValidationResultItem.create(List<ComponentAst> components,
Validation validation,
String message) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultComponentAst |
| Modifier and Type | Method and Description |
|---|---|
List<ComponentAst> |
DefaultComponentAst.directChildren() |
Stream<ComponentAst> |
FilteredArtifactAst.recursiveStream(AstTraversalDirection direction) |
List<ComponentAst> |
FilteredArtifactAst.topLevelComponents() |
List<ComponentAst> |
DefaultArtifactAst.topLevelComponents() |
| Constructor and Description |
|---|
DefaultArtifactAst(List<ComponentAst> topLevelComponents,
Supplier<Set<org.mule.runtime.api.meta.model.ExtensionModel>> dependenciesSupplier,
ArtifactAst parentArtifact,
PropertiesResolver propertiesResolver,
NamespaceDefinition namespaceDefinition,
List<ImportedResource> importedResources) |
DefaultComponentAst(List<ComponentAst> builtChildren,
Map<org.mule.runtime.api.util.Pair<org.mule.runtime.api.meta.model.parameter.ParameterModel,org.mule.runtime.api.meta.model.parameter.ParameterGroupModel>,ComponentParameterAst> parameterAsts,
Map<String,String> extraParams,
PropertiesResolver propertiesResolver,
Map<String,Object> annotations,
Supplier<Optional<String>> componentId,
org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel,
org.mule.runtime.api.meta.model.nested.NestableElementModel nestableElementModel,
org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel,
org.mule.runtime.api.meta.model.connection.ConnectionProviderModel connectionProviderModel,
org.mule.runtime.api.meta.model.parameter.ParameterizedModel parameterizedModel,
org.mule.metadata.api.model.MetadataType type,
ComponentGenerationInformation generationInformation,
ComponentMetadataAst metadata,
org.mule.runtime.api.component.location.ComponentLocation location,
org.mule.runtime.api.component.ComponentIdentifier identifier,
org.mule.runtime.api.component.TypedComponentIdentifier.ComponentType componentType) |
FilteredArtifactAst(ArtifactAst fullArtifactAst,
Predicate<ComponentAst> componentFilter) |
| Modifier and Type | Method and Description |
|---|---|
ComponentAst |
DefaultComponentAstBuilder.build() |
ComponentAst |
LightComponentAstBuilder.build() |
ComponentAst |
DefaultComponentAstBuilder.get() |
ComponentAst |
LightComponentAstBuilder.get() |
| Modifier and Type | Method and Description |
|---|---|
ArtifactAstBuilder |
DefaultArtifactAstBuilder.addTopLevelComponent(ComponentAst topLevelComponent) |
| Modifier and Type | Method and Description |
|---|---|
Spliterator<ComponentAst> |
ComponentAstSpliteratorStrategy.trySplit() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ComponentAstSpliteratorStrategy.tryAdvance(Consumer<? super ComponentAst> action) |
protected abstract boolean |
ComponentAstSpliteratorStrategy.tryAdvanceAfterChildrenConsumed(Consumer<? super ComponentAst> action) |
protected abstract boolean |
ComponentAstSpliteratorStrategy.tryAdvanceBeforeChildrenConsumed(Consumer<? super ComponentAst> action) |
protected boolean |
ComponentAstSpliteratorStrategy.tryAdvanceOverComponentAst(Consumer<? super ComponentAst> action) |
| Constructor and Description |
|---|
ComponentAstSpliteratorStrategy(ComponentAst component,
AstTraversalDirection direction) |
| Modifier and Type | Method and Description |
|---|---|
List<ComponentAst> |
DefaultValidationResultItem.getComponents() |
| Constructor and Description |
|---|
DefaultValidationResultItem(List<ComponentAst> components,
List<ComponentParameterAst> parameters,
Validation validation,
String message) |
Copyright © 2025 MuleSoft, Inc.. All rights reserved.