Class PythonTestDescriptionArg
- java.lang.Object
-
- com.facebook.buck.features.python.PythonTestDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasContacts
,HasDeclaredDeps
,HasTests
,HasTestTimeout
,HasTestRunner
,HasVersionUniverse
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class PythonTestDescriptionArg extends Object
Immutable implementation ofPythonTestDescription.AbstractPythonTestDescriptionArg
.Use the builder to create immutable instances:
PythonTestDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PythonTestDescriptionArg.Builder
Builds instances of typePythonTestDescriptionArg
.
-
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 PythonTestDescriptionArg.Builder
builder()
Creates a builder forPythonTestDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofPythonTestDescriptionArg
that have equal attribute values.com.google.common.collect.ImmutableSet<BuildTarget>
getAdditionalCoverageTargets()
Optional<String>
getBaseModule()
com.google.common.collect.ImmutableList<StringWithMacros>
getBuildArgs()
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.Optional<Boolean>
getCompile()
com.google.common.collect.ImmutableSortedSet<String>
getContacts()
Optional<Flavor>
getCxxPlatform()
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()
com.google.common.collect.ImmutableMap<String,StringWithMacros>
getEnv()
Optional<String>
getExtension()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
com.google.common.collect.ImmutableList<StringWithMacros>
getLinkerFlags()
Optional<String>
getMainModule()
String
getName()
Each rule has a namecom.google.common.collect.ImmutableList<NeededCoverageSpec>
getNeededCoverage()
Optional<PythonBuckConfig.PackageStyle>
getPackageStyle()
Optional<String>
getPlatform()
PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>>
getPlatformDeps()
PatternMatchedCollection<SourceSortedSet>
getPlatformResources()
PatternMatchedCollection<SourceSortedSet>
getPlatformSrcs()
com.google.common.collect.ImmutableSet<BuildTarget>
getPreloadDeps()
SourceSortedSet
getResources()
Optional<BuildTarget>
getRunner()
Optional<TestRunnerSpec>
getSpecs()
SourceSortedSet
getSrcs()
Optional<Long>
getTestRuleTimeoutMs()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getTests()
Optional<VersionMatchedCollection<SourceSortedSet>>
getVersionedResources()
Optional<VersionMatchedCollection<SourceSortedSet>>
getVersionedSrcs()
Optional<String>
getVersionUniverse()
Optional<Boolean>
getZipSafe()
int
hashCode()
Computes a hash code from attributes:mainModule
,platform
,cxxPlatform
,extension
,packageStyle
,preloadDeps
,linkerFlags
,neededCoverage
,buildArgs
,env
,additionalCoverageTargets
,compile
,contacts
,runner
,specs
,testRuleTimeoutMs
,srcs
,versionedSrcs
,platformSrcs
,resources
,versionedResources
,platformResources
,platformDeps
,baseModule
,zipSafe
,excludeDepsFromMergedLinking
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,deps
,tests
,versionUniverse
.boolean
isExcludeDepsFromMergedLinking()
String
toString()
Prints the immutable valuePythonTestDescriptionArg
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
-
getMainModule
public Optional<String> getMainModule()
- Returns:
- The value of the
mainModule
attribute
-
getCxxPlatform
public Optional<Flavor> getCxxPlatform()
- Returns:
- The value of the
cxxPlatform
attribute
-
getPackageStyle
public Optional<PythonBuckConfig.PackageStyle> getPackageStyle()
- Returns:
- The value of the
packageStyle
attribute
-
getPreloadDeps
public com.google.common.collect.ImmutableSet<BuildTarget> getPreloadDeps()
- Returns:
- The value of the
preloadDeps
attribute
-
getLinkerFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getLinkerFlags()
- Returns:
- The value of the
linkerFlags
attribute
-
getNeededCoverage
public com.google.common.collect.ImmutableList<NeededCoverageSpec> getNeededCoverage()
- Returns:
- The value of the
neededCoverage
attribute
-
getBuildArgs
public com.google.common.collect.ImmutableList<StringWithMacros> getBuildArgs()
- Returns:
- The value of the
buildArgs
attribute
-
getEnv
public com.google.common.collect.ImmutableMap<String,StringWithMacros> getEnv()
- Returns:
- The value of the
env
attribute
-
getAdditionalCoverageTargets
public com.google.common.collect.ImmutableSet<BuildTarget> getAdditionalCoverageTargets()
- Returns:
- The value of the
additionalCoverageTargets
attribute
-
getContacts
public com.google.common.collect.ImmutableSortedSet<String> getContacts()
- Specified by:
getContacts
in interfaceHasContacts
- Returns:
- The value of the
contacts
attribute
-
getRunner
public Optional<BuildTarget> getRunner()
- Specified by:
getRunner
in interfaceHasTestRunner
- Returns:
- The value of the
runner
attribute
-
getSpecs
public Optional<TestRunnerSpec> getSpecs()
- Specified by:
getSpecs
in interfaceHasTestRunner
- Returns:
- The value of the
specs
attribute
-
getTestRuleTimeoutMs
public Optional<Long> getTestRuleTimeoutMs()
- Specified by:
getTestRuleTimeoutMs
in interfaceHasTestTimeout
- Returns:
- The value of the
testRuleTimeoutMs
attribute
-
getSrcs
public SourceSortedSet getSrcs()
- Returns:
- The value of the
srcs
attribute
-
getVersionedSrcs
public Optional<VersionMatchedCollection<SourceSortedSet>> getVersionedSrcs()
- Returns:
- The value of the
versionedSrcs
attribute
-
getPlatformSrcs
public PatternMatchedCollection<SourceSortedSet> getPlatformSrcs()
- Returns:
- The value of the
platformSrcs
attribute
-
getResources
public SourceSortedSet getResources()
- Returns:
- The value of the
resources
attribute
-
getVersionedResources
public Optional<VersionMatchedCollection<SourceSortedSet>> getVersionedResources()
- Returns:
- The value of the
versionedResources
attribute
-
getPlatformResources
public PatternMatchedCollection<SourceSortedSet> getPlatformResources()
- Returns:
- The value of the
platformResources
attribute
-
getPlatformDeps
public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getPlatformDeps()
- Returns:
- The value of the
platformDeps
attribute
-
getBaseModule
public Optional<String> getBaseModule()
- Returns:
- The value of the
baseModule
attribute
-
isExcludeDepsFromMergedLinking
public boolean isExcludeDepsFromMergedLinking()
- Returns:
- The value of the
excludeDepsFromMergedLinking
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
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
getTests
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
-
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 ofPythonTestDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:mainModule
,platform
,cxxPlatform
,extension
,packageStyle
,preloadDeps
,linkerFlags
,neededCoverage
,buildArgs
,env
,additionalCoverageTargets
,compile
,contacts
,runner
,specs
,testRuleTimeoutMs
,srcs
,versionedSrcs
,platformSrcs
,resources
,versionedResources
,platformResources
,platformDeps
,baseModule
,zipSafe
,excludeDepsFromMergedLinking
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,deps
,tests
,versionUniverse
.
-
toString
public String toString()
Prints the immutable valuePythonTestDescriptionArg
with attribute values.
-
builder
public static PythonTestDescriptionArg.Builder builder()
Creates a builder forPythonTestDescriptionArg
.- Returns:
- A new PythonTestDescriptionArg builder
-
-