Package com.facebook.buck.rules.macros
Class LocationMacro
- java.lang.Object
-
- com.facebook.buck.rules.macros.BuildTargetMacro
-
- com.facebook.buck.rules.macros.BaseLocationMacro
-
- com.facebook.buck.rules.macros.LocationMacro
-
- All Implemented Interfaces:
Macro
,TargetTranslatable<Macro>
public abstract class LocationMacro extends BaseLocationMacro
Macro that resolves to the output location of a build rule.
-
-
Constructor Summary
Constructors Constructor Description LocationMacro()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Macro>
getMacroClass()
static LocationMacro
of(BuildTarget buildTarget)
Shorthand for constructing a LocationMacro referring to the main default output.static LocationMacro
of(BuildTargetWithOutputs target)
protected LocationMacro
withTargetWithOutputs(BuildTargetWithOutputs target)
-
Methods inherited from class com.facebook.buck.rules.macros.BuildTargetMacro
equals, getTarget, getTargetWithOutputs, hashCode, translateTargets
-
-
-
-
Method Detail
-
withTargetWithOutputs
protected LocationMacro withTargetWithOutputs(BuildTargetWithOutputs target)
- Specified by:
withTargetWithOutputs
in classBuildTargetMacro
- Returns:
- a copy of this
BuildTargetMacro
with the givenBuildTargetWithOutputs
.
-
of
public static LocationMacro of(BuildTarget buildTarget)
Shorthand for constructing a LocationMacro referring to the main default output.
-
of
public static LocationMacro of(BuildTargetWithOutputs target)
-
-