Package com.facebook.buck.android
Class AndroidResourceDescriptionArg
- java.lang.Object
-
- com.facebook.buck.android.AndroidResourceDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasDeclaredDeps
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class AndroidResourceDescriptionArg extends Object
Immutable implementation ofAndroidResourceDescription.AbstractAndroidResourceDescriptionArg
.Use the builder to create immutable instances:
AndroidResourceDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AndroidResourceDescriptionArg.Builder
Builds instances of typeAndroidResourceDescriptionArg
.
-
Field Summary
-
Fields inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
DEFAULT_TARGET_PLATFORM_PARAM_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AndroidResourceDescriptionArg.Builder
builder()
Creates a builder forAndroidResourceDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofAndroidResourceDescriptionArg
that have equal attribute values.Optional<Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>>>
getAssets()
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_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()
boolean
getHasWhitelistedStrings()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
Optional<SourcePath>
getManifest()
String
getName()
Each rule has a nameOptional<String>
getPackage()
Optional<Path>
getProjectAssets()
Optional<Path>
getProjectRes()
Optional<Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>>>
getRes()
boolean
getResourceUnion()
int
hashCode()
Computes a hash code from attributes:res
,assets
,projectRes
,projectAssets
,hasWhitelistedStrings
,getPackage
,manifest
,resourceUnion
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
,deps
.String
toString()
Prints the immutable valueAndroidResourceDescriptionArg
with attribute values.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
labelsContainsAnyOf
-
-
-
-
Method Detail
-
getRes
public Optional<Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>>> getRes()
- Returns:
- The value of the
res
attribute
-
getAssets
public Optional<Either<SourcePath,com.google.common.collect.ImmutableSortedMap<String,SourcePath>>> getAssets()
- Returns:
- The value of the
assets
attribute
-
getProjectAssets
public Optional<Path> getProjectAssets()
- Returns:
- The value of the
projectAssets
attribute
-
getHasWhitelistedStrings
public boolean getHasWhitelistedStrings()
- Returns:
- The value of the
hasWhitelistedStrings
attribute
-
getManifest
public Optional<SourcePath> getManifest()
- Returns:
- The value of the
manifest
attribute
-
getResourceUnion
public boolean getResourceUnion()
- Returns:
- The value of the
resourceUnion
attribute
-
getLicenses
public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
- Specified by:
getLicenses
in interfaceBuildRuleArg
- Returns:
- The value of the
licenses
attribute
-
getLabels
public com.google.common.collect.ImmutableSortedSet<String> getLabels()
- Specified by:
getLabels
in interfaceBuildRuleArg
- Returns:
- The value of the
labels
attribute
-
getDefaultTargetPlatform
public 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.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.
- Specified by:
getDefaultTargetPlatform
in interfaceBuildRuleArg
-
getCompatibleWith
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
A list ofconfig_setting
a target is compatible with.- Specified by:
getCompatibleWith
in interfaceBuildRuleArg
-
getName
public String getName()
Each rule has a name- Specified by:
getName
in interfaceConstructorArg
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofAndroidResourceDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:res
,assets
,projectRes
,projectAssets
,hasWhitelistedStrings
,getPackage
,manifest
,resourceUnion
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
,deps
.
-
toString
public String toString()
Prints the immutable valueAndroidResourceDescriptionArg
with attribute values.
-
builder
public static AndroidResourceDescriptionArg.Builder builder()
Creates a builder forAndroidResourceDescriptionArg
.- Returns:
- A new AndroidResourceDescriptionArg builder
-
-