Package com.facebook.buck.features.rust
Class RustTestDescriptionArg
- java.lang.Object
-
- com.facebook.buck.features.rust.RustTestDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasDeclaredDeps
,HasDefaultPlatform
,HasSrcs
,HasNamedDeclaredDeps
,RustCommonArgs
,HasVersionUniverse
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class RustTestDescriptionArg extends Object
Immutable implementation ofRustTestDescription.AbstractRustTestDescriptionArg
.Use the builder to create immutable instances:
RustTestDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RustTestDescriptionArg.Builder
Builds instances of typeRustTestDescriptionArg
.
-
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 RustTestDescriptionArg.Builder
builder()
Creates a builder forRustTestDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofRustTestDescriptionArg
that have equal attribute values.com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.com.google.common.collect.ImmutableSet<String>
getContacts()
Optional<String>
getCrate()
Optional<String>
getCrateRoot()
Optional<Flavor>
getDefaultPlatform()
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<String>
getEdition()
com.google.common.collect.ImmutableSortedMap<String,StringWithMacros>
getEnv()
com.google.common.collect.ImmutableSortedSet<String>
getFeatures()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
com.google.common.collect.ImmutableList<StringWithMacros>
getLinkerFlags()
Optional<Linker.LinkableDepType>
getLinkStyle()
com.google.common.collect.ImmutableSortedMap<SourcePath,String>
getMappedSrcs()
String
getName()
Each rule has a namecom.google.common.collect.ImmutableSortedMap<String,BuildTarget>
getNamedDeps()
PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>>
getPlatformDeps()
com.google.common.collect.ImmutableList<StringWithMacros>
getRustcFlags()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getSrcs()
Optional<String>
getVersionUniverse()
int
hashCode()
Computes a hash code from attributes:contacts
,linkerFlags
,linkStyle
,rpath
,framework
,mappedSrcs
,env
,edition
,features
,rustcFlags
,crate
,crateRoot
,platformDeps
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,namedDeps
,deps
,srcs
,defaultPlatform
,versionUniverse
.boolean
isFramework()
boolean
isRpath()
String
toString()
Prints the immutable valueRustTestDescriptionArg
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
-
getContacts
public com.google.common.collect.ImmutableSet<String> getContacts()
- Returns:
- The value of the
contacts
attribute
-
getLinkerFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getLinkerFlags()
- Returns:
- The value of the
linkerFlags
attribute
-
getLinkStyle
public Optional<Linker.LinkableDepType> getLinkStyle()
- Returns:
- The value of the
linkStyle
attribute
-
isRpath
public boolean isRpath()
- Returns:
- The value of the
rpath
attribute
-
isFramework
public boolean isFramework()
- Returns:
- The value of the
framework
attribute
-
getMappedSrcs
public com.google.common.collect.ImmutableSortedMap<SourcePath,String> getMappedSrcs()
- Specified by:
getMappedSrcs
in interfaceRustCommonArgs
- Returns:
- The value of the
mappedSrcs
attribute
-
getEnv
public com.google.common.collect.ImmutableSortedMap<String,StringWithMacros> getEnv()
- Specified by:
getEnv
in interfaceRustCommonArgs
- Returns:
- The value of the
env
attribute
-
getEdition
public Optional<String> getEdition()
- Specified by:
getEdition
in interfaceRustCommonArgs
- Returns:
- The value of the
edition
attribute
-
getFeatures
public com.google.common.collect.ImmutableSortedSet<String> getFeatures()
- Specified by:
getFeatures
in interfaceRustCommonArgs
- Returns:
- The value of the
features
attribute
-
getRustcFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getRustcFlags()
- Specified by:
getRustcFlags
in interfaceRustCommonArgs
- Returns:
- The value of the
rustcFlags
attribute
-
getCrate
public Optional<String> getCrate()
- Specified by:
getCrate
in interfaceRustCommonArgs
- Returns:
- The value of the
crate
attribute
-
getCrateRoot
public Optional<String> getCrateRoot()
- Specified by:
getCrateRoot
in interfaceRustCommonArgs
- Returns:
- The value of the
crateRoot
attribute
-
getPlatformDeps
public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getPlatformDeps()
- Specified by:
getPlatformDeps
in interfaceRustCommonArgs
- Returns:
- The value of the
platformDeps
attribute
-
getCompatibleWith
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
Description copied from interface:BuildRuleArg
A list ofconfig_setting
a target is compatible with.- Specified by:
getCompatibleWith
in interfaceBuildRuleArg
- Returns:
- The value of the
compatibleWith
attribute
-
getDefaultTargetPlatform
public Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
Description copied from interface:BuildRuleArg
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
- Returns:
- The value of the
defaultTargetPlatform
attribute
-
getLabels
public com.google.common.collect.ImmutableSortedSet<String> getLabels()
- Specified by:
getLabels
in interfaceBuildRuleArg
- Returns:
- The value of the
labels
attribute
-
getLicenses
public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
- Specified by:
getLicenses
in interfaceBuildRuleArg
- Returns:
- The value of the
licenses
attribute
-
getName
public String getName()
Description copied from interface:ConstructorArg
Each rule has a name- Specified by:
getName
in interfaceConstructorArg
- Returns:
- The value of the
name
attribute
-
getNamedDeps
public com.google.common.collect.ImmutableSortedMap<String,BuildTarget> getNamedDeps()
- Specified by:
getNamedDeps
in interfaceHasNamedDeclaredDeps
- Returns:
- The value of the
namedDeps
attribute
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
getSrcs
public com.google.common.collect.ImmutableSortedSet<SourcePath> getSrcs()
-
getDefaultPlatform
public Optional<Flavor> getDefaultPlatform()
- Specified by:
getDefaultPlatform
in interfaceHasDefaultPlatform
- Returns:
- The value of the
defaultPlatform
attribute
-
getVersionUniverse
public Optional<String> getVersionUniverse()
- Specified by:
getVersionUniverse
in interfaceHasVersionUniverse
- Returns:
- The value of the
versionUniverse
attribute
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofRustTestDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:contacts
,linkerFlags
,linkStyle
,rpath
,framework
,mappedSrcs
,env
,edition
,features
,rustcFlags
,crate
,crateRoot
,platformDeps
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,namedDeps
,deps
,srcs
,defaultPlatform
,versionUniverse
.
-
toString
public String toString()
Prints the immutable valueRustTestDescriptionArg
with attribute values.
-
builder
public static RustTestDescriptionArg.Builder builder()
Creates a builder forRustTestDescriptionArg
.- Returns:
- A new RustTestDescriptionArg builder
-
-