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, waitexecute, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecutionprotected 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 Actions or be source filesoutputs - the outputs for this Actionpublic final BuildTarget getOwner()
public final com.google.common.collect.ImmutableSortedSet<Artifact> getInputs()
public final com.google.common.collect.ImmutableSortedSet<OutputArtifact> getOutputs()
getOutputs in interface Actionpublic com.google.common.collect.ImmutableSortedSet<SourcePath> getSourcePathOutputs()
getSourcePathOutputs in interface BuildEngineActiongetSourcePathOutputs in interface ActionBuildEngineAction builds. This is here for legacy as
BuildRules deal with SourcePathpublic final String getShortName()
getShortName in interface Actionpublic final String getID()
public BuildTarget getBuildTarget()
getBuildTarget in interface BuildEngineActionBuildTarget of the rule corresponding to this actionpublic com.google.common.collect.ImmutableSet<BuildTarget> getDependencies()
getDependencies in interface BuildEngineActionBuildEngineAction to build, as
identified by the BuildTarget.