public final class MuleAstUtils extends Object
ArtifactAsts and ComponentAsts.| Modifier and Type | Method and Description |
|---|---|
static ArtifactAst |
emptyArtifact()
Provides a singleton empty
ArtifactAst instance. |
static Optional<ComponentParameterAst> |
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 Set<ComponentAst> |
resolveOrphanComponents(ArtifactAst appModel)
Given an
ArtifactAst, return all those components within it that are not accessible from a top-level component. |
public static Set<ComponentAst> resolveOrphanComponents(ArtifactAst appModel)
ArtifactAst, return all those components within it that are not accessible from a top-level component.appModel - the model to determine orphan components from.appModel that are not accessible from a top-level component.public static ArtifactAst emptyArtifact()
ArtifactAst instance.ArtifactAst without components.public static Optional<ComponentParameterAst> parameterOfType(ComponentAst referent, org.mule.runtime.api.meta.model.stereotype.StereotypeModel referenceStereotype)
ComponentAst, lookup for a parameter that references an object with a certain stereotype.referent - the ComponentAst that will be checked for the reference.referenceStereotype - the StereotypeModel to check for.ComponentParameterAst representing a parameter of referent that references an object assignable to
referenceStereotype, if it exists.Copyright © 2021 MuleSoft, Inc.. All rights reserved.