Package com.facebook.buck.jvm.scala
Class ScalaTestDescriptionArg
- java.lang.Object
-
- com.facebook.buck.jvm.scala.ScalaTestDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasContacts
,HasDeclaredDeps
,HasProvidedDeps
,HasSrcs
,HasTests
,HasTestTimeout
,JavaLibraryDescription.CoreArg
,JavaTestDescription.CoreArg
,JvmLibraryArg
,MaybeRequiredForSourceOnlyAbiArg
,ScalaLibraryDescription.CoreArg
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ScalaTestDescriptionArg extends Object
Immutable implementation ofScalaTestDescription.AbstractScalaTestDescriptionArg
.Use the builder to create immutable instances:
ScalaTestDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScalaTestDescriptionArg.Builder
Builds instances of typeScalaTestDescriptionArg
.
-
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 ScalaTestDescriptionArg.Builder
builder()
Creates a builder forScalaTestDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofScalaTestDescriptionArg
that have equal attribute values.Optional<AbiGenerationMode>
getAbiGenerationMode()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getAnnotationProcessorDeps()
Optional<Boolean>
getAnnotationProcessorOnly()
com.google.common.collect.ImmutableList<String>
getAnnotationProcessorParams()
com.google.common.collect.ImmutableSet<String>
getAnnotationProcessors()
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.Optional<CompileAgainstLibraryType>
getCompileAgainst()
Optional<Either<BuiltInJavac,SourcePath>>
getCompiler()
Optional<String>
getCompilerClassName()
com.google.common.collect.ImmutableSortedSet<String>
getContacts()
com.google.common.collect.ImmutableSet<BuildTarget>
getCxxLibraryWhitelist()
Optional<Flavor>
getDefaultCxxPlatform()
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()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getExportedDeps()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getExportedProvidedDeps()
com.google.common.collect.ImmutableList<String>
getExtraArguments()
ForkMode
getForkMode()
Optional<SourcePath>
getJavac()
Optional<SourcePath>
getJavacJar()
com.google.common.collect.ImmutableList<String>
getJavaPluginParams()
Optional<String>
getJavaVersion()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
Optional<SourcePath>
getManifestFile()
Optional<String>
getMavenCoords()
Optional<SourcePath>
getMavenPomTemplate()
String
getName()
Each rule has a nameOptional<Boolean>
getNeverMarkAsUnusedDependency()
Optional<JavaBuckConfig.UnusedDependenciesAction>
getOnUnusedDependencies()
com.google.common.collect.ImmutableList<BuildTarget>
getPlugins()
com.google.common.collect.ImmutableList<String>
getPostprocessClassesCommands()
Optional<SourcePath>
getProguardConfig()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getProvidedDeps()
com.google.common.collect.ImmutableSet<Pattern>
getRemoveClasses()
boolean
getRequiredForSourceOnlyAbi()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getResources()
Optional<Path>
getResourcesRoot()
boolean
getRunTestSeparately()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getRuntimeDeps()
Optional<String>
getSource()
Optional<JavaBuckConfig.SourceAbiVerificationMode>
getSourceAbiVerificationMode()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getSourceOnlyAbiDeps()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getSrcs()
Optional<Level>
getStdErrLogLevel()
Optional<Level>
getStdOutLogLevel()
Optional<String>
getTarget()
Optional<Long>
getTestCaseTimeoutMs()
Optional<Long>
getTestRuleTimeoutMs()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getTests()
Optional<TestType>
getTestType()
Optional<SourcePath>
getUnbundledResourcesRoot()
Optional<Boolean>
getUseCxxLibraries()
com.google.common.collect.ImmutableList<StringWithMacros>
getVmArgs()
int
hashCode()
Computes a hash code from attributes:extraArguments
,resources
,proguardConfig
,postprocessClassesCommands
,resourcesRoot
,unbundledResourcesRoot
,manifestFile
,mavenCoords
,mavenPomTemplate
,exportedDeps
,sourceOnlyAbiDeps
,runtimeDeps
,source
,target
,javaVersion
,javac
,javacJar
,compilerClassName
,compiler
,removeClasses
,annotationProcessorDeps
,annotationProcessorParams
,javaPluginParams
,annotationProcessors
,annotationProcessorOnly
,plugins
,abiGenerationMode
,compileAgainst
,sourceAbiVerificationMode
,onUnusedDependencies
,neverMarkAsUnusedDependency
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
,requiredForSourceOnlyAbi
,deps
,providedDeps
,exportedProvidedDeps
,srcs
,tests
,vmArgs
,testType
,runTestSeparately
,forkMode
,stdErrLogLevel
,stdOutLogLevel
,useCxxLibraries
,cxxLibraryWhitelist
,testCaseTimeoutMs
,env
,defaultCxxPlatform
,contacts
,testRuleTimeoutMs
.String
toString()
Prints the immutable valueScalaTestDescriptionArg
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
-
Methods inherited from interface com.facebook.buck.jvm.java.JvmLibraryArg
addLegacyProcessors, addPlugins, buildJavaAnnotationProcessorParams, buildStandardJavacParams, getJavacSpec, getPluginsOf, hasJavacSpec, isValidJavacJar, verify
-
-
-
-
Method Detail
-
getExtraArguments
public com.google.common.collect.ImmutableList<String> getExtraArguments()
- Specified by:
getExtraArguments
in interfaceJvmLibraryArg
- Specified by:
getExtraArguments
in interfaceScalaLibraryDescription.CoreArg
- Returns:
- The value of the
extraArguments
attribute
-
getResources
public com.google.common.collect.ImmutableSortedSet<SourcePath> getResources()
- Specified by:
getResources
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
resources
attribute
-
getProguardConfig
public Optional<SourcePath> getProguardConfig()
- Specified by:
getProguardConfig
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
proguardConfig
attribute
-
getPostprocessClassesCommands
public com.google.common.collect.ImmutableList<String> getPostprocessClassesCommands()
- Specified by:
getPostprocessClassesCommands
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
postprocessClassesCommands
attribute
-
getResourcesRoot
public Optional<Path> getResourcesRoot()
- Specified by:
getResourcesRoot
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
resourcesRoot
attribute
-
getUnbundledResourcesRoot
public Optional<SourcePath> getUnbundledResourcesRoot()
- Specified by:
getUnbundledResourcesRoot
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
unbundledResourcesRoot
attribute
-
getManifestFile
public Optional<SourcePath> getManifestFile()
- Specified by:
getManifestFile
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
manifestFile
attribute
-
getMavenCoords
public Optional<String> getMavenCoords()
- Specified by:
getMavenCoords
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
mavenCoords
attribute
-
getMavenPomTemplate
public Optional<SourcePath> getMavenPomTemplate()
- Specified by:
getMavenPomTemplate
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
mavenPomTemplate
attribute
-
getExportedDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getExportedDeps()
- Specified by:
getExportedDeps
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
exportedDeps
attribute
-
getSourceOnlyAbiDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getSourceOnlyAbiDeps()
- Specified by:
getSourceOnlyAbiDeps
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
sourceOnlyAbiDeps
attribute
-
getRuntimeDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getRuntimeDeps()
- Specified by:
getRuntimeDeps
in interfaceJavaLibraryDescription.CoreArg
- Returns:
- The value of the
runtimeDeps
attribute
-
getSource
public Optional<String> getSource()
- Specified by:
getSource
in interfaceJvmLibraryArg
- Returns:
- The value of the
source
attribute
-
getTarget
public Optional<String> getTarget()
- Specified by:
getTarget
in interfaceJvmLibraryArg
- Returns:
- The value of the
target
attribute
-
getJavaVersion
public Optional<String> getJavaVersion()
- Specified by:
getJavaVersion
in interfaceJvmLibraryArg
- Returns:
- The value of the
javaVersion
attribute
-
getJavac
public Optional<SourcePath> getJavac()
- Specified by:
getJavac
in interfaceJvmLibraryArg
- Returns:
- The value of the
javac
attribute
-
getJavacJar
public Optional<SourcePath> getJavacJar()
- Specified by:
getJavacJar
in interfaceJvmLibraryArg
- Returns:
- The value of the
javacJar
attribute
-
getCompilerClassName
public Optional<String> getCompilerClassName()
- Specified by:
getCompilerClassName
in interfaceJvmLibraryArg
- Returns:
- The value of the
compilerClassName
attribute
-
getCompiler
public Optional<Either<BuiltInJavac,SourcePath>> getCompiler()
- Specified by:
getCompiler
in interfaceJvmLibraryArg
- Returns:
- The value of the
compiler
attribute
-
getRemoveClasses
public com.google.common.collect.ImmutableSet<Pattern> getRemoveClasses()
- Specified by:
getRemoveClasses
in interfaceJvmLibraryArg
- Returns:
- The value of the
removeClasses
attribute
-
getAnnotationProcessorDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getAnnotationProcessorDeps()
- Specified by:
getAnnotationProcessorDeps
in interfaceJvmLibraryArg
- Returns:
- The value of the
annotationProcessorDeps
attribute
-
getAnnotationProcessorParams
public com.google.common.collect.ImmutableList<String> getAnnotationProcessorParams()
- Specified by:
getAnnotationProcessorParams
in interfaceJvmLibraryArg
- Returns:
- The value of the
annotationProcessorParams
attribute
-
getJavaPluginParams
public com.google.common.collect.ImmutableList<String> getJavaPluginParams()
- Specified by:
getJavaPluginParams
in interfaceJvmLibraryArg
- Returns:
- The value of the
javaPluginParams
attribute
-
getAnnotationProcessors
public com.google.common.collect.ImmutableSet<String> getAnnotationProcessors()
- Specified by:
getAnnotationProcessors
in interfaceJvmLibraryArg
- Returns:
- The value of the
annotationProcessors
attribute
-
getAnnotationProcessorOnly
public Optional<Boolean> getAnnotationProcessorOnly()
- Specified by:
getAnnotationProcessorOnly
in interfaceJvmLibraryArg
- Returns:
- The value of the
annotationProcessorOnly
attribute
-
getPlugins
public com.google.common.collect.ImmutableList<BuildTarget> getPlugins()
- Specified by:
getPlugins
in interfaceJvmLibraryArg
- Returns:
- The value of the
plugins
attribute
-
getAbiGenerationMode
public Optional<AbiGenerationMode> getAbiGenerationMode()
- Specified by:
getAbiGenerationMode
in interfaceJvmLibraryArg
- Returns:
- The value of the
abiGenerationMode
attribute
-
getCompileAgainst
public Optional<CompileAgainstLibraryType> getCompileAgainst()
- Specified by:
getCompileAgainst
in interfaceJvmLibraryArg
- Returns:
- The value of the
compileAgainst
attribute
-
getSourceAbiVerificationMode
public Optional<JavaBuckConfig.SourceAbiVerificationMode> getSourceAbiVerificationMode()
- Specified by:
getSourceAbiVerificationMode
in interfaceJvmLibraryArg
- Returns:
- The value of the
sourceAbiVerificationMode
attribute
-
getOnUnusedDependencies
public Optional<JavaBuckConfig.UnusedDependenciesAction> getOnUnusedDependencies()
- Specified by:
getOnUnusedDependencies
in interfaceJvmLibraryArg
- Returns:
- The value of the
onUnusedDependencies
attribute
-
getNeverMarkAsUnusedDependency
public Optional<Boolean> getNeverMarkAsUnusedDependency()
- Specified by:
getNeverMarkAsUnusedDependency
in interfaceJvmLibraryArg
- Returns:
- The value of the
neverMarkAsUnusedDependency
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
-
getRequiredForSourceOnlyAbi
public boolean getRequiredForSourceOnlyAbi()
- Specified by:
getRequiredForSourceOnlyAbi
in interfaceMaybeRequiredForSourceOnlyAbiArg
- Returns:
- The value of the
requiredForSourceOnlyAbi
attribute
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
getProvidedDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getProvidedDeps()
- Specified by:
getProvidedDeps
in interfaceHasProvidedDeps
- Returns:
- The value of the
providedDeps
attribute
-
getExportedProvidedDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getExportedProvidedDeps()
- Specified by:
getExportedProvidedDeps
in interfaceHasProvidedDeps
- Returns:
- The value of the
exportedProvidedDeps
attribute
-
getSrcs
public com.google.common.collect.ImmutableSortedSet<SourcePath> getSrcs()
-
getTests
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
-
getVmArgs
public com.google.common.collect.ImmutableList<StringWithMacros> getVmArgs()
- Specified by:
getVmArgs
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
vmArgs
attribute
-
getTestType
public Optional<TestType> getTestType()
- Specified by:
getTestType
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
testType
attribute
-
getRunTestSeparately
public boolean getRunTestSeparately()
- Specified by:
getRunTestSeparately
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
runTestSeparately
attribute
-
getForkMode
public ForkMode getForkMode()
- Specified by:
getForkMode
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
forkMode
attribute
-
getStdErrLogLevel
public Optional<Level> getStdErrLogLevel()
- Specified by:
getStdErrLogLevel
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
stdErrLogLevel
attribute
-
getStdOutLogLevel
public Optional<Level> getStdOutLogLevel()
- Specified by:
getStdOutLogLevel
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
stdOutLogLevel
attribute
-
getUseCxxLibraries
public Optional<Boolean> getUseCxxLibraries()
- Specified by:
getUseCxxLibraries
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
useCxxLibraries
attribute
-
getCxxLibraryWhitelist
public com.google.common.collect.ImmutableSet<BuildTarget> getCxxLibraryWhitelist()
- Specified by:
getCxxLibraryWhitelist
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
cxxLibraryWhitelist
attribute
-
getTestCaseTimeoutMs
public Optional<Long> getTestCaseTimeoutMs()
- Specified by:
getTestCaseTimeoutMs
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
testCaseTimeoutMs
attribute
-
getEnv
public com.google.common.collect.ImmutableMap<String,StringWithMacros> getEnv()
- Specified by:
getEnv
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
env
attribute
-
getDefaultCxxPlatform
public Optional<Flavor> getDefaultCxxPlatform()
- Specified by:
getDefaultCxxPlatform
in interfaceJavaTestDescription.CoreArg
- Returns:
- The value of the
defaultCxxPlatform
attribute
-
getContacts
public com.google.common.collect.ImmutableSortedSet<String> getContacts()
- Specified by:
getContacts
in interfaceHasContacts
- Returns:
- The value of the
contacts
attribute
-
getTestRuleTimeoutMs
public Optional<Long> getTestRuleTimeoutMs()
- Specified by:
getTestRuleTimeoutMs
in interfaceHasTestTimeout
- Returns:
- The value of the
testRuleTimeoutMs
attribute
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofScalaTestDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:extraArguments
,resources
,proguardConfig
,postprocessClassesCommands
,resourcesRoot
,unbundledResourcesRoot
,manifestFile
,mavenCoords
,mavenPomTemplate
,exportedDeps
,sourceOnlyAbiDeps
,runtimeDeps
,source
,target
,javaVersion
,javac
,javacJar
,compilerClassName
,compiler
,removeClasses
,annotationProcessorDeps
,annotationProcessorParams
,javaPluginParams
,annotationProcessors
,annotationProcessorOnly
,plugins
,abiGenerationMode
,compileAgainst
,sourceAbiVerificationMode
,onUnusedDependencies
,neverMarkAsUnusedDependency
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
,requiredForSourceOnlyAbi
,deps
,providedDeps
,exportedProvidedDeps
,srcs
,tests
,vmArgs
,testType
,runTestSeparately
,forkMode
,stdErrLogLevel
,stdOutLogLevel
,useCxxLibraries
,cxxLibraryWhitelist
,testCaseTimeoutMs
,env
,defaultCxxPlatform
,contacts
,testRuleTimeoutMs
.
-
toString
public String toString()
Prints the immutable valueScalaTestDescriptionArg
with attribute values.
-
builder
public static ScalaTestDescriptionArg.Builder builder()
Creates a builder forScalaTestDescriptionArg
.- Returns:
- A new ScalaTestDescriptionArg builder
-
-