@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class JarGenruleDescriptionArg extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JarGenruleDescriptionArg.Builder
Builds instances of type
JarGenruleDescriptionArg. |
DEFAULT_TARGET_PLATFORM_PARAM_NAME| Modifier and Type | Method and Description |
|---|---|
static JarGenruleDescriptionArg.Builder |
builder()
Creates a builder for
JarGenruleDescriptionArg. |
boolean |
equals(Object another)
This instance is equal to all instances of
JarGenruleDescriptionArg 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
|
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:
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
JarGenruleDescriptionArg with attribute values. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitlabelsContainsAnyOfpublic 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)
JarGenruleDescriptionArg that have equal attribute values.public int hashCode()
bash, cmd, cmdExe, type, srcs, enableSandbox, environmentExpansionSeparator, remote, cacheable, needAndroidTools, licenses, labels, defaultTargetPlatform, compatibleWith, name, tests.public String toString()
JarGenruleDescriptionArg with attribute values.public static JarGenruleDescriptionArg.Builder builder()
JarGenruleDescriptionArg.