@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class JsLibraryDescriptionArg extends Object
JsLibraryDescription.AbstractJsLibraryDescriptionArg
.
Use the builder to create immutable instances:
JsLibraryDescriptionArg.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
JsLibraryDescriptionArg.Builder
Builds instances of type
JsLibraryDescriptionArg . |
DEFAULT_TARGET_PLATFORM_PARAM_NAME
Modifier and Type | Method and Description |
---|---|
static JsLibraryDescriptionArg.Builder |
builder()
Creates a builder for
JsLibraryDescriptionArg . |
boolean |
equals(Object another)
This instance is equal to all instances of
JsLibraryDescriptionArg that have equal attribute values. |
Optional<String> |
getBasePath() |
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.
|
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getDeps() |
Optional<Query> |
getDepsQuery() |
Optional<StringWithMacros> |
getExtraJson()
A JSON string, optionally containing macros.
|
com.google.common.collect.ImmutableSortedSet<String> |
getLabels() |
com.google.common.collect.ImmutableSet<SourcePath> |
getLicenses() |
String |
getName()
Each rule has a name
|
com.google.common.collect.ImmutableSet<Either<SourcePath,Pair<SourcePath,String>>> |
getSrcs() |
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getTests() |
BuildTarget |
getWorker() |
int |
hashCode()
Computes a hash code from attributes:
srcs , worker , basePath , compatibleWith , defaultTargetPlatform , labels , licenses , name , depsQuery , deps , extraJson , tests . |
String |
toString()
Prints the immutable value
JsLibraryDescriptionArg with attribute values. |
default JsLibraryDescriptionArg |
withDepsQuery(Query query) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
labelsContainsAnyOf
public com.google.common.collect.ImmutableSet<Either<SourcePath,Pair<SourcePath,String>>> getSrcs()
srcs
attributepublic BuildTarget getWorker()
worker
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> getDeps()
deps
attributepublic Optional<StringWithMacros> getExtraJson()
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
tests
attributepublic boolean equals(@Nullable Object another)
JsLibraryDescriptionArg
that have equal attribute values.public int hashCode()
srcs
, worker
, basePath
, compatibleWith
, defaultTargetPlatform
, labels
, licenses
, name
, depsQuery
, deps
, extraJson
, tests
.public String toString()
JsLibraryDescriptionArg
with attribute values.public static JsLibraryDescriptionArg.Builder builder()
JsLibraryDescriptionArg
.public JsLibraryDescriptionArg withDepsQuery(Query query)
withDepsQuery
in interface HasDepsQuery