public abstract class AbstractAction extends Object implements Action
Action
Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.ImmutableSortedSet<Artifact> |
inputs |
protected com.google.common.collect.ImmutableSortedSet<OutputArtifact> |
outputs |
protected BuildTarget |
owner |
Modifier | Constructor and Description |
---|---|
protected |
AbstractAction(ActionRegistry registry,
com.google.common.collect.ImmutableSortedSet<Artifact> inputs,
com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs,
String shortName) |
Modifier and Type | Method and Description |
---|---|
BuildTarget |
getBuildTarget() |
com.google.common.collect.ImmutableSet<BuildTarget> |
getDependencies() |
String |
getID() |
com.google.common.collect.ImmutableSortedSet<Artifact> |
getInputs() |
com.google.common.collect.ImmutableSortedSet<OutputArtifact> |
getOutputs() |
BuildTarget |
getOwner() |
String |
getShortName() |
com.google.common.collect.ImmutableSortedSet<SourcePath> |
getSourcePathOutputs() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution
protected final BuildTarget owner
protected final com.google.common.collect.ImmutableSortedSet<Artifact> inputs
protected final com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs
protected AbstractAction(ActionRegistry registry, com.google.common.collect.ImmutableSortedSet<Artifact> inputs, com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs, String shortName)
registry
- the DefaultActionRegistry
to registry this action for.inputs
- the input Artifact
for this Action
. They can be either outputs of
other Action
s or be source filesoutputs
- the outputs for this Action
public final BuildTarget getOwner()
public final com.google.common.collect.ImmutableSortedSet<Artifact> getInputs()
public final com.google.common.collect.ImmutableSortedSet<OutputArtifact> getOutputs()
getOutputs
in interface Action
public com.google.common.collect.ImmutableSortedSet<SourcePath> getSourcePathOutputs()
getSourcePathOutputs
in interface BuildEngineAction
getSourcePathOutputs
in interface Action
BuildEngineAction
builds. This is here for legacy as
BuildRules deal with SourcePath
public final String getShortName()
getShortName
in interface Action
public final String getID()
public BuildTarget getBuildTarget()
getBuildTarget
in interface BuildEngineAction
BuildTarget
of the rule corresponding to this actionpublic com.google.common.collect.ImmutableSet<BuildTarget> getDependencies()
getDependencies
in interface BuildEngineAction
BuildEngineAction
to build, as
identified by the BuildTarget
.