public abstract class ForwardingBuildTargetSourcePath extends Object implements BuildTargetSourcePath
BuildTargetSourcePath
which resolves to the value of another SourcePath.Constructor and Description |
---|
ForwardingBuildTargetSourcePath() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SourcePath other) |
boolean |
equals(Object other) |
abstract SourcePath |
getDelegate() |
abstract Optional<com.google.common.hash.HashCode> |
getPrecomputedHash()
In rare cases, a BuildTargetSourcePath may know a hash of its content on disk before it even
creates its output.
|
abstract BuildTargetWithOutputs |
getTargetWithOutputs() |
int |
hashCode() |
static ForwardingBuildTargetSourcePath |
of(BuildTarget target,
SourcePath delegate)
Construct a new immutable
ForwardingBuildTargetSourcePath instance. |
static ForwardingBuildTargetSourcePath |
of(BuildTargetWithOutputs target,
SourcePath delegate)
Construct a new immutable
ForwardingBuildTargetSourcePath instance. |
static ForwardingBuildTargetSourcePath |
of(BuildTargetWithOutputs target,
SourcePath delegate,
Optional<? extends com.google.common.hash.HashCode> precomputedHash) |
String |
representationForRuleKey() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTarget
compareClasses
public static ForwardingBuildTargetSourcePath of(BuildTarget target, SourcePath delegate)
ForwardingBuildTargetSourcePath
instance.target
- The value for the target
attributedelegate
- The value for the delegate
attributepublic static ForwardingBuildTargetSourcePath of(BuildTargetWithOutputs target, SourcePath delegate)
ForwardingBuildTargetSourcePath
instance.target
- The BuildTargetWithOutputs
associated with this SourcePath
delegate
- The value for the delegate
attributetargetWithOutputs
public static ForwardingBuildTargetSourcePath of(BuildTargetWithOutputs target, SourcePath delegate, Optional<? extends com.google.common.hash.HashCode> precomputedHash)
public abstract BuildTargetWithOutputs getTargetWithOutputs()
getTargetWithOutputs
in interface BuildTargetSourcePath
BuildTargetWithOutputs
this SourcePath
is associated withpublic abstract SourcePath getDelegate()
public abstract Optional<com.google.common.hash.HashCode> getPrecomputedHash()
BuildTargetSourcePath
getPrecomputedHash
in interface BuildTargetSourcePath
public int compareTo(SourcePath other)
compareTo
in interface Comparable<SourcePath>
public String representationForRuleKey()
representationForRuleKey
in interface BuildTargetSourcePath