public class RuleAnalysisContextImpl extends Object implements RuleAnalysisContext, ActionAnalysisDataRegistry
RuleAnalysisContext. This context
is created per rule analysis.| Constructor and Description |
|---|
RuleAnalysisContextImpl(BuildTarget buildTarget,
com.google.common.collect.ImmutableMap<BuildTarget,ProviderInfoCollection> depProviders,
ProjectFilesystem filesystem,
BuckEventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
ActionRegistry |
actionRegistry() |
BuckEventBus |
getEventBus() |
Map<ActionAnalysisData.ID,ActionAnalysisData> |
getRegisteredActionData()
Verifies that the
ActionRegistry has been finalized where all Artifacts are bound, and then returns all the ActionAnalysisData registered. |
void |
registerAction(ActionAnalysisData actionAnalysisData) |
ProviderInfoCollection |
resolveDep(BuildTarget dep)
same as
RuleAnalysisContext.resolveDeps(Iterable) but for one dep |
Map<BuildTarget,ProviderInfoCollection> |
resolveDeps(Iterable<BuildTarget> deps) |
Artifact |
resolveSrc(SourcePath src)
same as
RuleAnalysisContext.resolveSrcs(Iterable) but for one src |
com.google.common.collect.ImmutableSortedSet<Artifact> |
resolveSrcs(Iterable<SourcePath> srcs) |
public RuleAnalysisContextImpl(BuildTarget buildTarget, com.google.common.collect.ImmutableMap<BuildTarget,ProviderInfoCollection> depProviders, ProjectFilesystem filesystem, BuckEventBus eventBus)
public Map<BuildTarget,ProviderInfoCollection> resolveDeps(Iterable<BuildTarget> deps)
resolveDeps in interface DependencyOnlyRuleAnalysisContextresolveDeps in interface RuleAnalysisContextProviderInfoCollection of the providers propagated by each of the
dependencies requested.public ProviderInfoCollection resolveDep(BuildTarget dep)
RuleAnalysisContextRuleAnalysisContext.resolveDeps(Iterable) but for one depresolveDep in interface DependencyOnlyRuleAnalysisContextresolveDep in interface RuleAnalysisContextpublic com.google.common.collect.ImmutableSortedSet<Artifact> resolveSrcs(Iterable<SourcePath> srcs)
resolveSrcs in interface DependencyOnlyRuleAnalysisContextresolveSrcs in interface RuleAnalysisContextArtifact of the sources of the providers propagated by each of
the source paths requested.public Artifact resolveSrc(SourcePath src)
RuleAnalysisContextRuleAnalysisContext.resolveSrcs(Iterable) but for one srcresolveSrc in interface DependencyOnlyRuleAnalysisContextresolveSrc in interface RuleAnalysisContextpublic ActionRegistry actionRegistry()
actionRegistry in interface RuleAnalysisContextArtifacts and
registering Actionspublic BuckEventBus getEventBus()
getEventBus in interface RuleAnalysisContextBuckEventBus for sending stats and printingpublic void registerAction(ActionAnalysisData actionAnalysisData)
registerAction in interface ActionAnalysisDataRegistrypublic Map<ActionAnalysisData.ID,ActionAnalysisData> getRegisteredActionData()
ActionRegistry has been finalized where all Artifacts are bound, and then returns all the ActionAnalysisData registered.