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 Artifact s 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 DependencyOnlyRuleAnalysisContext
resolveDeps
in interface RuleAnalysisContext
ProviderInfoCollection
of the providers propagated by each of the
dependencies requested.public ProviderInfoCollection resolveDep(BuildTarget dep)
RuleAnalysisContext
RuleAnalysisContext.resolveDeps(Iterable)
but for one depresolveDep
in interface DependencyOnlyRuleAnalysisContext
resolveDep
in interface RuleAnalysisContext
public com.google.common.collect.ImmutableSortedSet<Artifact> resolveSrcs(Iterable<SourcePath> srcs)
resolveSrcs
in interface DependencyOnlyRuleAnalysisContext
resolveSrcs
in interface RuleAnalysisContext
Artifact
of the sources of the providers propagated by each of
the source paths requested.public Artifact resolveSrc(SourcePath src)
RuleAnalysisContext
RuleAnalysisContext.resolveSrcs(Iterable)
but for one srcresolveSrc
in interface DependencyOnlyRuleAnalysisContext
resolveSrc
in interface RuleAnalysisContext
public ActionRegistry actionRegistry()
actionRegistry
in interface RuleAnalysisContext
Artifact
s and
registering Action
spublic BuckEventBus getEventBus()
getEventBus
in interface RuleAnalysisContext
BuckEventBus
for sending stats and printingpublic void registerAction(ActionAnalysisData actionAnalysisData)
registerAction
in interface ActionAnalysisDataRegistry
public Map<ActionAnalysisData.ID,ActionAnalysisData> getRegisteredActionData()
ActionRegistry
has been finalized where all Artifact
s are bound, and then returns all the ActionAnalysisData
registered.