@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class JsBundleGenruleDescriptionArg extends Object
JsBundleGenruleDescription.AbstractJsBundleGenruleDescriptionArg
.
Use the builder to create immutable instances:
JsBundleGenruleDescriptionArg.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
JsBundleGenruleDescriptionArg.Builder
Builds instances of type
JsBundleGenruleDescriptionArg . |
DEFAULT_TARGET_PLATFORM_PARAM_NAME
Modifier and Type | Method and Description |
---|---|
static JsBundleGenruleDescriptionArg.Builder |
builder()
Creates a builder for
JsBundleGenruleDescriptionArg . |
boolean |
equals(Object another)
This instance is equal to all instances of
JsBundleGenruleDescriptionArg that have equal attribute values. |
Optional<StringWithMacros> |
getBash() |
Optional<String> |
getBundleName()
The name of the bundle.
|
com.google.common.collect.ImmutableList<Pair<Flavor,String>> |
getBundleNameForFlavor()
A mapping from flavors to bundle names.
|
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() |
BuildTarget |
getJsBundle() |
com.google.common.collect.ImmutableSortedSet<String> |
getLabels() |
com.google.common.collect.ImmutableSet<SourcePath> |
getLicenses() |
String |
getName()
Each rule has a name
|
default String |
getOut() |
Optional<Boolean> |
getRemote()
If present and true, requests that Buck run this genrule remotely if possible.
|
boolean |
getRewriteDepsFile() |
boolean |
getRewriteMisc() |
boolean |
getRewriteSourcemap() |
boolean |
getSkipResources() |
SourceSet |
getSrcs() |
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getTests() |
default Optional<String> |
getType() |
int |
hashCode()
Computes a hash code from attributes:
jsBundle , rewriteSourcemap , rewriteMisc , skipResources , rewriteDepsFile , bash , cacheable , cmd , cmdExe , enableSandbox , environmentExpansionSeparator , remote , srcs , needAndroidTools , compatibleWith , defaultTargetPlatform , labels , licenses , name , tests , bundleName , bundleNameForFlavor . |
boolean |
isNeedAndroidTools()
This argument allows genrule to specify if it needs android tools (like dex, aapt, ndk, sdk).
|
String |
toString()
Prints the immutable value
JsBundleGenruleDescriptionArg with attribute values. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
labelsContainsAnyOf
computeBundleName
public BuildTarget getJsBundle()
jsBundle
attributepublic boolean getRewriteSourcemap()
rewriteSourcemap
attributepublic boolean getRewriteMisc()
rewriteMisc
attributepublic boolean getSkipResources()
skipResources
attributepublic boolean getRewriteDepsFile()
rewriteDepsFile
attributepublic Optional<StringWithMacros> getBash()
bash
attributepublic Optional<Boolean> getCacheable()
AbstractGenruleDescription.CommonArg
BuildRule.isCacheable()
does with respect to caching if you decide to use this
attributecacheable
attributepublic Optional<StringWithMacros> getCmd()
cmd
attributepublic Optional<StringWithMacros> getCmdExe()
cmdExe
attributepublic Optional<Boolean> getEnableSandbox()
enableSandbox
attributepublic Optional<String> getEnvironmentExpansionSeparator()
environmentExpansionSeparator
attributepublic Optional<Boolean> getRemote()
AbstractGenruleDescription.CommonArg
remote
attributepublic SourceSet getSrcs()
srcs
attributepublic boolean isNeedAndroidTools()
AbstractGenruleDescription.CommonArg
needAndroidTools
attributepublic com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
BuildRuleArg
config_setting
a target is compatible with.compatibleWith
attributepublic Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
BuildRuleArg
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.
defaultTargetPlatform
attributepublic com.google.common.collect.ImmutableSortedSet<String> getLabels()
labels
attributepublic com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
licenses
attributepublic String getName()
ConstructorArg
name
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
tests
attributepublic com.google.common.collect.ImmutableList<Pair<Flavor,String>> getBundleNameForFlavor()
public boolean equals(@Nullable Object another)
JsBundleGenruleDescriptionArg
that have equal attribute values.public int hashCode()
jsBundle
, rewriteSourcemap
, rewriteMisc
, skipResources
, rewriteDepsFile
, bash
, cacheable
, cmd
, cmdExe
, enableSandbox
, environmentExpansionSeparator
, remote
, srcs
, needAndroidTools
, compatibleWith
, defaultTargetPlatform
, labels
, licenses
, name
, tests
, bundleName
, bundleNameForFlavor
.public String toString()
JsBundleGenruleDescriptionArg
with attribute values.public static JsBundleGenruleDescriptionArg.Builder builder()
JsBundleGenruleDescriptionArg
.public String getOut()
public Optional<String> getType()
getType
in interface AbstractGenruleDescription.CommonArg