public abstract class LegacyProviderRuleAnalysisResult extends Object implements RuleAnalysisResult
RuleAnalysisResult
for legacy provider results from LegacyProviderCompatibleDescription.createProviders(ProviderCreationContext,
BuildTarget, BuildRuleArg)
.
This implementation throws on any operation relating to ActionAnalysisData
Constructor and Description |
---|
LegacyProviderRuleAnalysisResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
actionExists(ActionAnalysisData.ID key) |
Optional<ActionAnalysisData> |
getActionOptional(ActionAnalysisData.ID key) |
abstract BuildTarget |
getBuildTarget() |
abstract ProviderInfoCollection |
getProviderInfos() |
com.google.common.collect.ImmutableMap<ActionAnalysisData.ID,ActionAnalysisData> |
getRegisteredActions() |
public abstract BuildTarget getBuildTarget()
getBuildTarget
in interface RuleAnalysisResult
BuildTarget
of the rulepublic abstract ProviderInfoCollection getProviderInfos()
getProviderInfos
in interface RuleAnalysisResult
ProviderInfoCollection
exported by the rulepublic final boolean actionExists(ActionAnalysisData.ID key)
actionExists
in interface ActionAnalysisDataLookUp
public final Optional<ActionAnalysisData> getActionOptional(ActionAnalysisData.ID key)
getActionOptional
in interface ActionAnalysisDataLookUp
ActionAnalysisData
if exists, else Optional.empty
public final com.google.common.collect.ImmutableMap<ActionAnalysisData.ID,ActionAnalysisData> getRegisteredActions()
getRegisteredActions
in interface ActionAnalysisDataLookUp
ActionAnalysisData