@Incubating public interface ResolvedComponentResult
Modifier and Type | Method and Description |
---|---|
Set<? extends DependencyResult> |
getDependencies()
Returns the dependencies of this component.
|
Set<? extends ResolvedDependencyResult> |
getDependents()
Returns the incoming dependencies of this component.
|
ComponentIdentifier |
getId()
Returns the identifier of this component.
|
ModuleVersionIdentifier |
getModuleVersion()
Returns the module version which this component belongs to, if any.
|
ComponentSelectionReason |
getSelectionReason()
Returns the reason why this particular component was selected in the result.
|
ComponentIdentifier getId()
Returns the identifier of this component. This can be used to uniquely identify the component within the current build, but it is not necessarily unique between different builds.
The return type is declared as an opaque ComponentIdentifier
, however the identifier may also implement one of the following interfaces:
ProjectComponentIdentifier
for those component instances which are produced by the current build.ModuleComponentIdentifier
for those component instances which are found in some repository.Set<? extends DependencyResult> getDependencies()
Returns the dependencies of this component. Includes resolved and unresolved dependencies (if any).
The elements of the returned collection are declared as DependencyResult
, however the dependency instances will also implement one of the
following instances:
ResolvedDependencyResult
for dependencies which were successfully resolved.UnresolvedDependencyResult
for dependencies which could not be resolved for some reason.Set<? extends ResolvedDependencyResult> getDependents()
ComponentSelectionReason getSelectionReason()
@Nullable ModuleVersionIdentifier getModuleVersion()
null
if this component has no associated module version.