T - Buildable instance for the Genrule implementation.public abstract class BaseGenrule<T extends GenruleBuildable> extends ModernBuildRule<T> implements HasOutputName, HasMultipleOutputs
Buildable, to be provided by child
classes.| Modifier | Constructor and Description |
|---|---|
protected |
BaseGenrule(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
BuildRuleResolver buildRuleResolver,
T buildable) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<OutputLabel> |
getOutputLabels()
returns a set of
OutputLabel instances associated with this build rule. |
String |
getOutputName(OutputLabel outputLabel)
Get the output name of the generated file, as listed in the BUCK file.
|
SourcePath |
getSourcePathToOutput()
Returns the output defined in 'out'.
|
com.google.common.collect.ImmutableSortedSet<SourcePath> |
getSourcePathToOutput(OutputLabel outputLabel)
Returns
SourcePath instances to the outputs associated with the given output label, or
null if the output label does not exist. |
String |
getType() |
boolean |
isCacheable()
Get whether or not the output of this genrule can be cached.
|
compareTo, getBuildable, getBuildCellPathFactory, getBuildDeps, getBuildSteps, getOutputPathResolver, getSetupStepsForBuildable, getSourcePath, getSourcePaths, injectFieldsIfNecessary, inputBasedRuleKeyIsEnabled, recordOutputs, recordOutputs, recordOutputs, stepsForBuildable, stepsForBuildable, updateBuildRuleResolverequals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, hasBuildSteps, hashCode, injectFields, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, getBuildDeps, getBuildSteps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, hasBuildSteps, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolvergetDependencies, getSourcePathOutputsisSupportedprotected BaseGenrule(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, BuildRuleResolver buildRuleResolver, T buildable)
public SourcePath getSourcePathToOutput()
getSourcePathToOutput(OutputLabel) instead.getSourcePathToOutput in interface HasMultipleOutputsgetSourcePathToOutput in interface BuildRulegetSourcePathToOutput in class ModernBuildRule<T extends GenruleBuildable>public com.google.common.collect.ImmutableSortedSet<SourcePath> getSourcePathToOutput(OutputLabel outputLabel)
HasMultipleOutputsSourcePath instances to the outputs associated with the given output label, or
null if the output label does not exist. If the default output label is given, returns
the default outputs associated with the rule.getSourcePathToOutput in interface HasMultipleOutputspublic com.google.common.collect.ImmutableSet<OutputLabel> getOutputLabels()
HasMultipleOutputsOutputLabel instances associated with this build rule.getOutputLabels in interface HasMultipleOutputspublic String getType()
getType in interface HasNameAndTypegetType in class AbstractBuildRulepublic String getOutputName(OutputLabel outputLabel)
getOutputName in interface HasOutputNamepublic final boolean isCacheable()
isCacheable in interface BuildEngineActionisCacheable in interface BuildRuleisCacheable in class AbstractBuildRule