public interface ArtifactAstDependencyGraph
Implementations need not be thread safe.
| Modifier and Type | Method and Description |
|---|---|
Comparator<ComponentAst> |
dependencyComparator()
Provides a
Comparator implementation that when used to sort dependencies. |
Set<ComponentAstDependency> |
getMissingDependencies()
Provides information about components referenced from within the artifact but not declared there.
|
Set<ComponentAst> |
getRequiredComponents(String componentName)
Provides a set of components that contains the required components for the componentName
(
ComponentAst.getComponentId()) provided. |
ArtifactAst |
minimalArtifactFor(ComponentAst vertex)
Creates an
ArtifactAst that only contains the minimally required components for the provided vertex to work
properly. |
ArtifactAst |
minimalArtifactFor(Predicate<ComponentAst> vertexPredicate)
Creates an
ArtifactAst that only contains the minimally required components for those which the provided
vertexPredicate applies to work properly. |
ArtifactAst minimalArtifactFor(ComponentAst vertex)
ArtifactAst that only contains the minimally required components for the provided vertex to work
properly.vertex - the component to calculate the minimal artifact forArtifactAst minimalArtifactFor(Predicate<ComponentAst> vertexPredicate)
ArtifactAst that only contains the minimally required components for those which the provided
vertexPredicate applies to work properly.vertexPredicate - the predicate of the components to calculate the minimal artifact forSet<ComponentAst> getRequiredComponents(String componentName)
ComponentAst.getComponentId()) provided.componentName - ComponentAst.getComponentId(), a potential component name to calculate the direct dependencies
forSet<ComponentAstDependency> getMissingDependencies()
Comparator<ComponentAst> dependencyComparator()
Comparator implementation that when used to sort dependencies.
Given 2 components, A and B where A depends on B, compare(A, B) will return a negative value and
compare(B, A) will return a positive value.
Note: this comparator imposes orderings that are inconsistent with equals. For 2 components that do not depend on each other, the returned value will be 0, but that doesn't mean that the components are equal.
Copyright © 2024 MuleSoft, Inc.. All rights reserved.