@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class RobolectricTestDescriptionArg extends Object
RobolectricTestDescription.AbstractRobolectricTestDescriptionArg
.
Use the builder to create immutable instances:
RobolectricTestDescriptionArg.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
RobolectricTestDescriptionArg.Builder
Builds instances of type
RobolectricTestDescriptionArg . |
DEFAULT_TARGET_PLATFORM_PARAM_NAME
Modifier and Type | Method and Description |
---|---|
static RobolectricTestDescriptionArg.Builder |
builder()
Creates a builder for
RobolectricTestDescriptionArg . |
boolean |
equals(Object another)
This instance is equal to all instances of
RobolectricTestDescriptionArg that have equal attribute values. |
Optional<AbiGenerationMode> |
getAbiGenerationMode() |
boolean |
getAllWarningsAsErrors()
Report an error if there are any warnings.
|
Optional<KotlinLibraryDescription.AnnotationProcessingTool> |
getAnnotationProcessingTool() |
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getAnnotationProcessorDeps() |
Optional<Boolean> |
getAnnotationProcessorOnly() |
com.google.common.collect.ImmutableList<String> |
getAnnotationProcessorParams() |
com.google.common.collect.ImmutableSet<String> |
getAnnotationProcessors() |
Optional<String> |
getApiVersion()
Allow to use declarations only from the specified version of bundled libraries.
|
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> |
getCompatibleWith()
A list of
config_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() |
com.google.common.collect.ImmutableList<String> |
getFreeCompilerArgs()
A list of additional compiler arguments.
|
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getFriendPaths() |
boolean |
getIncludeRuntime()
Include Kotlin runtime in to resulting .jar
|
Optional<SourcePath> |
getJavac() |
Optional<SourcePath> |
getJavacJar() |
boolean |
getJavaParameters()
Generate metadata for Java 1.8 reflection on method parameters.
|
com.google.common.collect.ImmutableList<String> |
getJavaPluginParams() |
Optional<String> |
getJavaVersion() |
Optional<String> |
getJdkHome()
Path to JDK home directory to include into classpath, if differs from default JAVA_HOME
|
String |
getJvmTarget()
Target version of the generated JVM bytecode (1.6 or 1.8), default is 1.6
Possible values: "1.6", "1.8"
|
com.google.common.collect.ImmutableMap<String,String> |
getKaptApOptions() |
com.google.common.collect.ImmutableList<SourcePath> |
getKotlincPlugins() |
com.google.common.collect.ImmutableSortedSet<String> |
getLabels() |
Optional<AndroidLibraryDescription.JvmLanguage> |
getLanguage() |
Optional<String> |
getLanguageVersion()
Provide source compatibility with specified language version.
|
com.google.common.collect.ImmutableSet<SourcePath> |
getLicenses() |
Optional<SourcePath> |
getManifestFile() |
Optional<String> |
getMavenCoords() |
Optional<SourcePath> |
getMavenPomTemplate() |
String |
getName()
Each rule has a name
|
Optional<Boolean> |
getNeverMarkAsUnusedDependency() |
boolean |
getNoJdk()
Don't include Java runtime into classpath.
|
boolean |
getNoReflect()
Don't include kotlin-reflect.jar into classpath.
|
boolean |
getNoStdlib()
Don't include kotlin-stdlib.jar or kotlin-reflect.jar into classpath.
|
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() |
Optional<String> |
getResourceUnionPackage() |
Optional<SourcePath> |
getRobolectricManifest() |
Optional<SourcePath> |
getRobolectricRuntimeDependency() |
Optional<BuildTarget> |
getRunner() |
boolean |
getRunTestSeparately() |
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getRuntimeDeps() |
Optional<String> |
getSource() |
Optional<JavaBuckConfig.SourceAbiVerificationMode> |
getSourceAbiVerificationMode() |
com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getSourceOnlyAbiDeps() |
Optional<TestRunnerSpec> |
getSpecs() |
com.google.common.collect.ImmutableSortedSet<SourcePath> |
getSrcs() |
Optional<Level> |
getStdErrLogLevel() |
Optional<Level> |
getStdOutLogLevel() |
boolean |
getSuppressWarnings()
Generate no warnings.
|
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() |
boolean |
getVerbose()
Enable verbose logging output.
|
com.google.common.collect.ImmutableList<StringWithMacros> |
getVmArgs() |
int |
hashCode()
Computes a hash code from attributes:
robolectricRuntimeDependency , robolectricManifest , resourceUnionPackage , useOldStyleableFormat , forceFinalResourceIds , useBinaryResources , vmArgs , testType , runTestSeparately , forkMode , stdErrLogLevel , stdOutLogLevel , useCxxLibraries , cxxLibraryWhitelist , testCaseTimeoutMs , env , defaultCxxPlatform , contacts , testRuleTimeoutMs , resources , proguardConfig , postprocessClassesCommands , resourcesRoot , unbundledResourcesRoot , manifestFile , mavenCoords , mavenPomTemplate , exportedDeps , sourceOnlyAbiDeps , runtimeDeps , source , target , javaVersion , javac , javacJar , compilerClassName , compiler , extraArguments , removeClasses , annotationProcessorDeps , annotationProcessorParams , javaPluginParams , annotationProcessors , annotationProcessorOnly , plugins , abiGenerationMode , compileAgainst , sourceAbiVerificationMode , onUnusedDependencies , neverMarkAsUnusedDependency , licenses , labels , defaultTargetPlatform , compatibleWith , name , requiredForSourceOnlyAbi , deps , providedDeps , exportedProvidedDeps , srcs , tests , language , freeCompilerArgs , allWarningsAsErrors , suppressWarnings , verbose , includeRuntime , jvmTarget , jdkHome , noJdk , noStdlib , noReflect , javaParameters , apiVersion , languageVersion , annotationProcessingTool , friendPaths , kaptApOptions , kotlincPlugins , runner , specs . |
boolean |
isForceFinalResourceIds() |
boolean |
isUseBinaryResources() |
boolean |
isUseOldStyleableFormat() |
String |
toString()
Prints the immutable value
RobolectricTestDescriptionArg with attribute values. |
default RobolectricTestDescriptionArg |
withDeps(Iterable<BuildTarget> deps) |
default RobolectricTestDescriptionArg |
withSrcs(Iterable<SourcePath> srcs) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addLegacyProcessors, addPlugins, buildJavaAnnotationProcessorParams, buildStandardJavacParams, getJavacSpec, getPluginsOf, hasJavacSpec, isValidJavacJar, verify
labelsContainsAnyOf
public Optional<SourcePath> getRobolectricRuntimeDependency()
robolectricRuntimeDependency
attributepublic Optional<SourcePath> getRobolectricManifest()
robolectricManifest
attributepublic Optional<String> getResourceUnionPackage()
resourceUnionPackage
attributepublic boolean isUseOldStyleableFormat()
useOldStyleableFormat
attributepublic boolean isForceFinalResourceIds()
forceFinalResourceIds
attributepublic boolean isUseBinaryResources()
useBinaryResources
attributepublic com.google.common.collect.ImmutableList<StringWithMacros> getVmArgs()
vmArgs
attributepublic boolean getRunTestSeparately()
runTestSeparately
attributepublic ForkMode getForkMode()
forkMode
attributepublic Optional<Level> getStdErrLogLevel()
stdErrLogLevel
attributepublic Optional<Level> getStdOutLogLevel()
stdOutLogLevel
attributepublic Optional<Boolean> getUseCxxLibraries()
useCxxLibraries
attributepublic com.google.common.collect.ImmutableSet<BuildTarget> getCxxLibraryWhitelist()
cxxLibraryWhitelist
attributepublic Optional<Long> getTestCaseTimeoutMs()
testCaseTimeoutMs
attributepublic com.google.common.collect.ImmutableMap<String,StringWithMacros> getEnv()
env
attributepublic Optional<Flavor> getDefaultCxxPlatform()
defaultCxxPlatform
attributepublic com.google.common.collect.ImmutableSortedSet<String> getContacts()
contacts
attributepublic Optional<Long> getTestRuleTimeoutMs()
testRuleTimeoutMs
attributepublic com.google.common.collect.ImmutableSortedSet<SourcePath> getResources()
resources
attributepublic Optional<SourcePath> getProguardConfig()
proguardConfig
attributepublic com.google.common.collect.ImmutableList<String> getPostprocessClassesCommands()
postprocessClassesCommands
attributepublic Optional<Path> getResourcesRoot()
resourcesRoot
attributepublic Optional<SourcePath> getUnbundledResourcesRoot()
unbundledResourcesRoot
attributepublic Optional<SourcePath> getManifestFile()
manifestFile
attributepublic Optional<String> getMavenCoords()
mavenCoords
attributepublic Optional<SourcePath> getMavenPomTemplate()
mavenPomTemplate
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getExportedDeps()
exportedDeps
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getSourceOnlyAbiDeps()
sourceOnlyAbiDeps
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getRuntimeDeps()
runtimeDeps
attributepublic Optional<String> getJavaVersion()
javaVersion
attributepublic Optional<SourcePath> getJavac()
javac
attributepublic Optional<SourcePath> getJavacJar()
javacJar
attributepublic Optional<String> getCompilerClassName()
compilerClassName
attributepublic Optional<Either<BuiltInJavac,SourcePath>> getCompiler()
compiler
attributepublic com.google.common.collect.ImmutableList<String> getExtraArguments()
extraArguments
attributepublic com.google.common.collect.ImmutableSet<Pattern> getRemoveClasses()
removeClasses
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getAnnotationProcessorDeps()
annotationProcessorDeps
attributepublic com.google.common.collect.ImmutableList<String> getAnnotationProcessorParams()
annotationProcessorParams
attributepublic com.google.common.collect.ImmutableList<String> getJavaPluginParams()
javaPluginParams
attributepublic com.google.common.collect.ImmutableSet<String> getAnnotationProcessors()
annotationProcessors
attributepublic Optional<Boolean> getAnnotationProcessorOnly()
annotationProcessorOnly
attributepublic com.google.common.collect.ImmutableList<BuildTarget> getPlugins()
plugins
attributepublic Optional<AbiGenerationMode> getAbiGenerationMode()
abiGenerationMode
attributepublic Optional<CompileAgainstLibraryType> getCompileAgainst()
compileAgainst
attributepublic Optional<JavaBuckConfig.SourceAbiVerificationMode> getSourceAbiVerificationMode()
sourceAbiVerificationMode
attributepublic Optional<JavaBuckConfig.UnusedDependenciesAction> getOnUnusedDependencies()
onUnusedDependencies
attributepublic Optional<Boolean> getNeverMarkAsUnusedDependency()
neverMarkAsUnusedDependency
attributepublic com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
licenses
attributepublic com.google.common.collect.ImmutableSortedSet<String> getLabels()
labels
attributepublic Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
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.
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
config_setting
a target is compatible with.public String getName()
public boolean getRequiredForSourceOnlyAbi()
requiredForSourceOnlyAbi
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
deps
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getProvidedDeps()
providedDeps
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getExportedProvidedDeps()
exportedProvidedDeps
attributepublic com.google.common.collect.ImmutableSortedSet<SourcePath> getSrcs()
srcs
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
public Optional<AndroidLibraryDescription.JvmLanguage> getLanguage()
language
attributepublic com.google.common.collect.ImmutableList<String> getFreeCompilerArgs()
public boolean getAllWarningsAsErrors()
public boolean getSuppressWarnings()
public boolean getVerbose()
public boolean getIncludeRuntime()
public String getJvmTarget()
public Optional<String> getJdkHome()
public boolean getNoJdk()
public boolean getNoStdlib()
public boolean getNoReflect()
public boolean getJavaParameters()
public Optional<String> getApiVersion()
public Optional<String> getLanguageVersion()
public Optional<KotlinLibraryDescription.AnnotationProcessingTool> getAnnotationProcessingTool()
annotationProcessingTool
attributepublic com.google.common.collect.ImmutableSortedSet<BuildTarget> getFriendPaths()
friendPaths
attributepublic com.google.common.collect.ImmutableMap<String,String> getKaptApOptions()
kaptApOptions
attributepublic com.google.common.collect.ImmutableList<SourcePath> getKotlincPlugins()
kotlincPlugins
attributepublic Optional<BuildTarget> getRunner()
public Optional<TestRunnerSpec> getSpecs()
public boolean equals(@Nullable Object another)
RobolectricTestDescriptionArg
that have equal attribute values.public int hashCode()
robolectricRuntimeDependency
, robolectricManifest
, resourceUnionPackage
, useOldStyleableFormat
, forceFinalResourceIds
, useBinaryResources
, vmArgs
, testType
, runTestSeparately
, forkMode
, stdErrLogLevel
, stdOutLogLevel
, useCxxLibraries
, cxxLibraryWhitelist
, testCaseTimeoutMs
, env
, defaultCxxPlatform
, contacts
, testRuleTimeoutMs
, resources
, proguardConfig
, postprocessClassesCommands
, resourcesRoot
, unbundledResourcesRoot
, manifestFile
, mavenCoords
, mavenPomTemplate
, exportedDeps
, sourceOnlyAbiDeps
, runtimeDeps
, source
, target
, javaVersion
, javac
, javacJar
, compilerClassName
, compiler
, extraArguments
, removeClasses
, annotationProcessorDeps
, annotationProcessorParams
, javaPluginParams
, annotationProcessors
, annotationProcessorOnly
, plugins
, abiGenerationMode
, compileAgainst
, sourceAbiVerificationMode
, onUnusedDependencies
, neverMarkAsUnusedDependency
, licenses
, labels
, defaultTargetPlatform
, compatibleWith
, name
, requiredForSourceOnlyAbi
, deps
, providedDeps
, exportedProvidedDeps
, srcs
, tests
, language
, freeCompilerArgs
, allWarningsAsErrors
, suppressWarnings
, verbose
, includeRuntime
, jvmTarget
, jdkHome
, noJdk
, noStdlib
, noReflect
, javaParameters
, apiVersion
, languageVersion
, annotationProcessingTool
, friendPaths
, kaptApOptions
, kotlincPlugins
, runner
, specs
.public String toString()
RobolectricTestDescriptionArg
with attribute values.public static RobolectricTestDescriptionArg.Builder builder()
RobolectricTestDescriptionArg
.public RobolectricTestDescriptionArg withDeps(Iterable<BuildTarget> deps)
public RobolectricTestDescriptionArg withSrcs(Iterable<SourcePath> srcs)