Uses of Interface
org.mule.runtime.ast.api.ComponentAst
Packages that use ComponentAst
Package
Description
-
Uses of ComponentAst in org.mule.runtime.ast.api
Methods in org.mule.runtime.ast.api that return types with arguments of type ComponentAstModifier and TypeMethodDescriptionComponentAst.directChildren()This method will NOT traverse any complex parameters this component has.ComponentAst.directChildrenSpliterator()This method will NOT traverse any complex parameters this component has.ComponentAst.directChildrenStream()default Stream<ComponentAst>ComponentAst.directChildrenStreamByIdentifier(String namespace, String elementName) Returns aStreamof all the direct children whichgetIdentifier()match the givennamespaceandname.ArtifactAst.filteredComponents(Predicate<ComponentAst> predicate) Given aPredicate, navigates the whole AST looking for allComponentAsts satisfied by the providedPredicateArtifactAst.recursiveSpliterator()ArtifactAst.recursiveSpliterator(AstTraversalDirection direction) ComponentAst.recursiveSpliterator()This method will also traverse the complex parameters in each component.ComponentAst.recursiveSpliterator(AstTraversalDirection direction) This method will also traverse the complex parameters in each component.ArtifactAst.recursiveStream()ArtifactAst.recursiveStream(AstTraversalDirection direction) ComponentAst.recursiveStream()This method will also traverse the complex parameters in each component.ComponentAst.recursiveStream(AstTraversalDirection direction) This method will also traverse the complex parameters in each component.ArtifactAst.topLevelComponents()ArtifactAst.topLevelComponentsSpliterator()ArtifactAst.topLevelComponentsStream()Method parameters in org.mule.runtime.ast.api with type arguments of type ComponentAstModifier and TypeMethodDescriptionArtifactAst.filteredComponents(Predicate<ComponentAst> predicate) Given aPredicate, navigates the whole AST looking for allComponentAsts satisfied by the providedPredicate -
Uses of ComponentAst in org.mule.runtime.ast.api.builder
Methods in org.mule.runtime.ast.api.builder that return ComponentAstModifier and TypeMethodDescriptionComponentAstBuilder.build()Builds the target component and its children. -
Uses of ComponentAst in org.mule.runtime.ast.api.util
Classes in org.mule.runtime.ast.api.util that implement ComponentAstModifier and TypeClassDescriptionclassBase implementation ofComponentAst.classThis class provides a skeletal implementation of theComponentAstinterface, to minimize the effort required to implement this interface when decorating instances ofComponentAst.Methods in org.mule.runtime.ast.api.util that return ComponentAstModifier and TypeMethodDescriptionstatic ComponentAstMuleArtifactAstCopyUtils.copyComponentTreeRecursively(ComponentAst source, UnaryOperator<ComponentAst> componentMapper) Copies and transforms a givenComponentAst, mapping it and its childrenComponentAstinstances recursively with the providedcompoenentMapperfunction.protected ComponentAstBaseComponentAstDecorator.getDecorated()Methods in org.mule.runtime.ast.api.util that return types with arguments of type ComponentAstModifier and TypeMethodDescriptionstatic Predicate<List<ComponentAst>>ComponentAstPredicatesFactory.anyElementInHierarchy(Predicate<ComponentAst> currentElementPredicate) Filter a component hierarchy by evaluating the provided component against any hierarchy element.static Predicate<List<ComponentAst>>ComponentAstPredicatesFactory.currentElemement(Predicate<ComponentAst> currentElementPredicate) Filter a component hierarchy by evaluating the provided component against the last hierarchy element.BaseComponentAstDecorator.directChildren()BaseComponentAst.directChildrenSpliterator()BaseComponentAstDecorator.directChildrenSpliterator()BaseComponentAst.directChildrenStream()BaseComponentAstDecorator.directChildrenStream()static Predicate<ComponentAst>ComponentAstPredicatesFactory.equalsComponentId(String componentId) static Predicate<ComponentAst>ComponentAstPredicatesFactory.equalsIdentifier(org.mule.runtime.api.component.ComponentIdentifier identifier) FilterComponentAstwith equalsComponentIdentifierstatic Predicate<ComponentAst>ComponentAstPredicatesFactory.equalsLocation(org.mule.runtime.api.component.location.ComponentLocation location) FilterComponentAstwith equalsComponentLocationstatic Predicate<ComponentAst>ComponentAstPredicatesFactory.equalsNamespace(String namespace) FilterComponentAstwith equals identifier namespaceBaseArtifactAst.filteredComponents(Predicate<ComponentAst> predicate) abstract Spliterator<ComponentAst>AstTraversalDirection.recursiveSpliterator(ComponentAst component) Creates aSpliteratorfor aComponentAstthat travers through thisComponentAstand its children recursively by currentAstTraversalDirection.BaseArtifactAst.recursiveSpliterator()BaseArtifactAst.recursiveSpliterator(AstTraversalDirection direction) BaseComponentAst.recursiveSpliterator()BaseComponentAst.recursiveSpliterator(AstTraversalDirection direction) BaseComponentAstDecorator.recursiveSpliterator()BaseComponentAstDecorator.recursiveSpliterator(AstTraversalDirection direction) BaseArtifactAst.recursiveStream()BaseArtifactAst.recursiveStream(AstTraversalDirection direction) BaseComponentAst.recursiveStream()BaseComponentAst.recursiveStream(AstTraversalDirection direction) BaseComponentAstDecorator.recursiveStream()BaseComponentAstDecorator.recursiveStream(AstTraversalDirection direction) Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, boolean ignoreParameterComplexValues) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, boolean ignoreParameterComplexValues) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors, boolean ignoreParameterComplexValues) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors, boolean ignoreParameterComplexValues) Enhances theStreamby adding hierarchy context to eachComponentAst.static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact) Similar toArtifactAst.recursiveStream(), but it enhances theStreamby adding hierarchy context to each item.static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact) Similar toArtifactAst.recursiveStream(), but it enhances theStreamby adding hierarchy context to each item.static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact, AstTraversalDirection direction) Similar toArtifactAst.recursiveStream(), but it enhances theStreamby adding hierarchy context to each item.static Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> MuleAstUtils.recursiveStreamWithHierarchy(ArtifactAst artifact, AstTraversalDirection direction) Similar toArtifactAst.recursiveStream(), but it enhances theStreamby 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 toArtifactAst.recursiveStream(), but it enhances theStreamby 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 toArtifactAst.recursiveStream(), but it enhances theStreamby adding hierarchy context to each item.static Set<ComponentAst>MuleAstUtils.resolveOrphanComponents(ArtifactAst appModel) Given anArtifactAst, return all those components within it that are not accessible from a top-level component.BaseArtifactAst.topLevelComponentsSpliterator()BaseArtifactAst.topLevelComponentsStream()static Predicate<List<ComponentAst>>ComponentAstPredicatesFactory.topLevelElement()Filter component hierarchies that represent just a top-level component.Methods in org.mule.runtime.ast.api.util with parameters of type ComponentAstModifier and TypeMethodDescriptionstatic booleanMuleAstUtils.areComponentsEquals(ComponentAst compA, ComponentAst compB) Compares the values of the givenComponentAsts for equality behavior-wise.static ComponentAstMuleArtifactAstCopyUtils.copyComponentTreeRecursively(ComponentAst source, UnaryOperator<ComponentAst> componentMapper) Copies and transforms a givenComponentAst, mapping it and its childrenComponentAstinstances recursively with the providedcompoenentMapperfunction.static <T extends org.mule.runtime.api.meta.model.parameter.ParameterizedModel>
org.mule.runtime.api.parameterization.ComponentParameterization<T>MuleAstUtils.createComponentParameterizationFromComponentAst(ComponentAst componentAst) Provides a way to create aComponentParameterizationfrom aComponentAst.static Optional<ComponentParameterAst>MuleAstUtils.parameterOfType(ComponentAst referent, org.mule.runtime.api.meta.model.stereotype.StereotypeModel referenceStereotype) Given aComponentAst, 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 aComponentAst, lookup for all parameters that reference an object with a certain stereotype.abstract Spliterator<ComponentAst>AstTraversalDirection.recursiveSpliterator(ComponentAst component) Creates aSpliteratorfor aComponentAstthat travers through thisComponentAstand its children recursively by currentAstTraversalDirection.Method parameters in org.mule.runtime.ast.api.util with type arguments of type ComponentAstModifier and TypeMethodDescriptionstatic Predicate<List<ComponentAst>>ComponentAstPredicatesFactory.anyElementInHierarchy(Predicate<ComponentAst> currentElementPredicate) Filter a component hierarchy by evaluating the provided component against any hierarchy element.static ComponentAstMuleArtifactAstCopyUtils.copyComponentTreeRecursively(ComponentAst source, UnaryOperator<ComponentAst> componentMapper) Copies and transforms a givenComponentAst, mapping it and its childrenComponentAstinstances recursively with the providedcompoenentMapperfunction.static ArtifactAstMuleArtifactAstCopyUtils.copyRecursively(ArtifactAst source, UnaryOperator<ComponentAst> componentMapper) Copies and transforms a givenArtifactAst, mapping its internalComponentAstinstances with the providedcompoenentMapperfunction.static ArtifactAstMuleArtifactAstCopyUtils.copyRecursively(ArtifactAst source, UnaryOperator<ComponentAst> componentMapper, Supplier<List<ComponentAst>> topLeveltoAdd, Predicate<ComponentAst> topLevelToRemove) Copies and transforms a givenArtifactAst, mapping its internalComponentAstinstances with the providedcompoenentMapperfunction.static ArtifactAstMuleArtifactAstCopyUtils.copyRecursively(ArtifactAst source, UnaryOperator<ComponentAst> componentMapper, Supplier<List<ComponentAst>> topLeveltoAdd, Predicate<ComponentAst> topLevelToRemove) Copies and transforms a givenArtifactAst, mapping its internalComponentAstinstances with the providedcompoenentMapperfunction.static ArtifactAstMuleArtifactAstCopyUtils.copyRecursively(ArtifactAst source, UnaryOperator<ComponentAst> componentMapper, Supplier<List<ComponentAst>> topLeveltoAdd, Predicate<ComponentAst> topLevelToRemove) Copies and transforms a givenArtifactAst, mapping its internalComponentAstinstances with the providedcompoenentMapperfunction.static Predicate<List<ComponentAst>>ComponentAstPredicatesFactory.currentElemement(Predicate<ComponentAst> currentElementPredicate) Filter a component hierarchy by evaluating the provided component against the last hierarchy element.static voidMuleAstUtils.doOnParamComponents(ComponentParameterAst param, Consumer<ComponentAst> action) Performs a given action on theComponentAsts that form the value of the provided parameter.static ArtifactAstMuleAstUtils.filteredArtifactAst(ArtifactAst artifactAst, Predicate<ComponentAst> componentFilter) BaseArtifactAst.filteredComponents(Predicate<ComponentAst> predicate) Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, boolean ignoreParameterComplexValues) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors, boolean ignoreParameterComplexValues) Enhances theStreamby adding hierarchy context to eachComponentAst.Stream<org.mule.runtime.api.util.Pair<ComponentAst,List<ComponentAst>>> AstTraversalDirection.recursiveStreamWithHierarchy(Stream<ComponentAst> components, List<ComponentAst> commonAncestors, boolean ignoreParameterComplexValues) Enhances theStreamby adding hierarchy context to eachComponentAst.Constructors in org.mule.runtime.ast.api.util with parameters of type ComponentAstModifierConstructorDescriptionBaseComponentAstDecorator(ComponentAst decorated) Creates a new decorator for the provided instance. -
Uses of ComponentAst in org.mule.runtime.ast.api.validation
Methods in org.mule.runtime.ast.api.validation that return types with arguments of type ComponentAstModifier and TypeMethodDescriptiondefault Predicate<List<ComponentAst>>ArtifactValidation.applicable()Validation.applicable()Determines if this validation has to be applied to a given component.ValidationResultItem.getComponents()Methods in org.mule.runtime.ast.api.validation with parameters of type ComponentAstModifier and TypeMethodDescriptionstatic ValidationResultItemValidationResultItem.create(ComponentAst component, List<ComponentParameterAst> parameters, Validation validation, String message) static ValidationResultItemValidationResultItem.create(ComponentAst component, List<ComponentParameterAst> parameters, Validation validation, String message, boolean causedByDynamicArtifact) static ValidationResultItemValidationResultItem.create(ComponentAst component, List<ComponentParameterAst> parameters, Validation validation, String message, Map<String, String> additionalData) static ValidationResultItemValidationResultItem.create(ComponentAst component, List<ComponentParameterAst> parameters, Validation validation, String message, Map<String, String> additionalData, boolean causedByDynamicArtifact) static ValidationResultItemValidationResultItem.create(ComponentAst component, ComponentParameterAst parameter, Validation validation, String message) static ValidationResultItemValidationResultItem.create(ComponentAst component, ComponentParameterAst parameter, Validation validation, String message, Map<String, String> additionalData) static ValidationResultItemValidationResultItem.create(ComponentAst component, Validation validation, String message) static ValidationResultItemValidationResultItem.create(ComponentAst component, Validation validation, String message, boolean causedByDynamicArtifact) default Optional<ValidationResultItem>ArtifactValidation.validate(ComponentAst component, ArtifactAst artifact) default Optional<ValidationResultItem>Validation.validate(ComponentAst component, ArtifactAst artifact) Runs this validation in the provided component.default List<ValidationResultItem>Validation.validateMany(ComponentAst component, ArtifactAst artifact) Runs this validation in the provided component.Method parameters in org.mule.runtime.ast.api.validation with type arguments of type ComponentAstModifier and TypeMethodDescriptionstatic ValidationResultItemValidationResultItem.create(List<ComponentAst> components, List<ComponentParameterAst> parameters, Validation validation, String message) static ValidationResultItemValidationResultItem.create(List<ComponentAst> components, List<ComponentParameterAst> parameters, Validation validation, String message, Map<String, String> additionalData) static ValidationResultItemValidationResultItem.create(List<ComponentAst> components, Validation validation, String message) -
Uses of ComponentAst in org.mule.runtime.ast.internal.builder
Methods in org.mule.runtime.ast.internal.builder that return ComponentAstModifier and TypeMethodDescriptionDefaultComponentAstBuilder.build()LightComponentAstBuilder.build()DefaultComponentAstBuilder.get()LightComponentAstBuilder.get()Methods in org.mule.runtime.ast.internal.builder with parameters of type ComponentAstModifier and TypeMethodDescriptionDefaultArtifactAstBuilder.addTopLevelComponent(ComponentAst topLevelComponent)