@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class GenruleDescriptionArg extends Object
GenruleDescription.AbstractGenruleDescriptionArg
.
Use the builder to create immutable instances:
GenruleDescriptionArg.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
GenruleDescriptionArg.Builder
Builds instances of type
GenruleDescriptionArg . |
DEFAULT_TARGET_PLATFORM_PARAM_NAME
Modifier and Type | Method and Description |
---|---|
static GenruleDescriptionArg.Builder |
builder()
Creates a builder for
GenruleDescriptionArg . |
default void |
check() |
boolean |
equals(Object another)
This instance is equal to all instances of
GenruleDescriptionArg 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() |
Optional<Boolean> |
getExecutable() |
com.google.common.collect.ImmutableSortedSet<String> |
getLabels() |
com.google.common.collect.ImmutableSet<SourcePath> |
getLicenses() |
String |
getName()
Each rule has a name
|
Optional<String> |
getOut() |
Optional<com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<String>>> |
getOuts() |
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 , outs , executable , 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
GenruleDescriptionArg with attribute values. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
labelsContainsAnyOf
public Optional<com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableSet<String>>> getOuts()
outs
attributepublic Optional<Boolean> getExecutable()
executable
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)
GenruleDescriptionArg
that have equal attribute values.public int hashCode()
out
, outs
, executable
, bash
, cmd
, cmdExe
, type
, srcs
, enableSandbox
, environmentExpansionSeparator
, remote
, cacheable
, needAndroidTools
, licenses
, labels
, defaultTargetPlatform
, compatibleWith
, name
, tests
.public String toString()
GenruleDescriptionArg
with attribute values.public static GenruleDescriptionArg.Builder builder()
GenruleDescriptionArg
.@Value.Check public void check()