@CheckReturnValue
public interface ProcessedCompileTesterFactory
CompileTester instances that test compilation with provided Processor
instances.| Modifier and Type | Method and Description |
|---|---|
CompileTester |
processedWith(java.lang.Iterable<? extends javax.annotation.processing.Processor> processors)
Adds annotation processors to the compilation being tested.
|
CompileTester |
processedWith(javax.annotation.processing.Processor first,
javax.annotation.processing.Processor... rest)
Adds annotation processors to the compilation being tested.
|
ProcessedCompileTesterFactory |
withClasspath(java.lang.Iterable<java.io.File> classPath)
Sets the compilation classpath.
|
ProcessedCompileTesterFactory |
withClasspathFrom(java.lang.ClassLoader classloader)
Deprecated.
prefer
withClasspath(Iterable). This method only supports URLClassLoader and the default system classloader, and Files are usually
a more natural way to expression compilation classpaths than class loaders. |
ProcessedCompileTesterFactory |
withCompilerOptions(java.lang.Iterable<java.lang.String> options)
Adds options that will be passed to the compiler.
|
ProcessedCompileTesterFactory |
withCompilerOptions(java.lang.String... options)
Adds options that will be passed to the compiler.
|
ProcessedCompileTesterFactory withCompilerOptions(java.lang.Iterable<java.lang.String> options)
-Xlint is the first option, by
default.ProcessedCompileTesterFactory withCompilerOptions(java.lang.String... options)
-Xlint is the first option, by
default.@Deprecated ProcessedCompileTesterFactory withClasspathFrom(java.lang.ClassLoader classloader)
withClasspath(Iterable). This method only supports URLClassLoader and the default system classloader, and Files are usually
a more natural way to expression compilation classpaths than class loaders.If not specified, we will use the System classpath for compilation.
ProcessedCompileTesterFactory withClasspath(java.lang.Iterable<java.io.File> classPath)
If not specified, we will use the System classpath for compilation.
CompileTester processedWith(javax.annotation.processing.Processor first, javax.annotation.processing.Processor... rest)
CompileTester processedWith(java.lang.Iterable<? extends javax.annotation.processing.Processor> processors)
Copyright © 2013-2019. All Rights Reserved.