@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class CxxGenruleDescriptionArg extends Object
CxxGenruleDescription.AbstractCxxGenruleDescriptionArg
.
Use the builder to create immutable instances:
CxxGenruleDescriptionArg.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
CxxGenruleDescriptionArg.Builder
Builds instances of type
CxxGenruleDescriptionArg . |
DEFAULT_TARGET_PLATFORM_PARAM_NAME
Modifier and Type | Method and Description |
---|---|
static CxxGenruleDescriptionArg.Builder |
builder()
Creates a builder for
CxxGenruleDescriptionArg . |
boolean |
equals(Object another)
This instance is equal to all instances of
CxxGenruleDescriptionArg that have equal attribute values. |
Optional<StringWithMacros> |
getBash() |
Optional<Boolean> |
getCacheable()
This functionality only exists to get around the lack of extensibility in our current build
rule / build file apis.
|
Optional<StringWithMacros> |
getCmd() |
Optional<StringWithMacros> |
getCmdExe() |
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> |
getCompatibleWith()
A list of
config_setting a target is compatible with. |
Optional<UnconfiguredBuildTarget> |
getDefaultTargetPlatform()
The name of build target default "new" platform: it is used when a platform is not specified
either globally or in a target which used this target as a dependency.
|
Optional<Boolean> |
getEnableSandbox() |
Optional<String> |
getEnvironmentExpansionSeparator() |
com.google.common.collect.ImmutableSortedSet<String> |
getLabels() |
com.google.common.collect.ImmutableSet<SourcePath> |
getLicenses() |
String |
getName()
Each rule has a name
|
String |
getOut() |
Optional<Boolean> |
getRemote()
If present and true, requests that Buck run this genrule remotely if possible.
|
SourceSet |
getSrcs() |
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getTests() |
Optional<String> |
getType() |
int |
hashCode()
Computes a hash code from attributes:
out , bash , cmd , cmdExe , type , srcs , enableSandbox , environmentExpansionSeparator , remote , cacheable , needAndroidTools , licenses , labels , defaultTargetPlatform , compatibleWith , name , tests . |
boolean |
isNeedAndroidTools()
This argument allows genrule to specify if it needs android tools (like dex, aapt, ndk, sdk).
|
String |
toString()
Prints the immutable value
CxxGenruleDescriptionArg with attribute values. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
labelsContainsAnyOf
public String getOut()
out
attributepublic Optional<StringWithMacros> getBash()
bash
attributepublic Optional<StringWithMacros> getCmd()
cmd
attributepublic Optional<StringWithMacros> getCmdExe()
cmdExe
attributepublic SourceSet getSrcs()
srcs
attributepublic Optional<Boolean> getEnableSandbox()
enableSandbox
attributepublic Optional<String> getEnvironmentExpansionSeparator()
environmentExpansionSeparator
attributepublic Optional<Boolean> getRemote()
public Optional<Boolean> getCacheable()
BuildRule#isCacheable
does with respect to caching if you decide to use this
attributepublic boolean isNeedAndroidTools()
public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
licenses
attributepublic com.google.common.collect.ImmutableSortedSet<String> getLabels()
labels
attributepublic Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
The value is a build target, but we specify it as string, because this function is not actually called, but the attr is fetched by name from the raw (unconfigured) target node.
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
config_setting
a target is compatible with.public String getName()
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
public boolean equals(@Nullable Object another)
CxxGenruleDescriptionArg
that have equal attribute values.public int hashCode()
out
, bash
, cmd
, cmdExe
, type
, srcs
, enableSandbox
, environmentExpansionSeparator
, remote
, cacheable
, needAndroidTools
, licenses
, labels
, defaultTargetPlatform
, compatibleWith
, name
, tests
.public String toString()
CxxGenruleDescriptionArg
with attribute values.public static CxxGenruleDescriptionArg.Builder builder()
CxxGenruleDescriptionArg
.