# Uses of Class
com.google.testing.compile.Compiler

## Uses of Compiler in com.google.testing.compile

Methods in com.google.testing.compile that return Compiler
Modifier and Type
Method
Description
`Compiler`
Compilation.`compiler()`
The compiler.
`static Compiler`
Compiler.`compiler(JavaCompiler javaCompiler)`
Returns a `Compiler` that uses a given `JavaCompiler` instance.
`static Compiler`
Compiler.`javac()`
Returns the `javac` compiler.
`final Compiler`
Compiler.`withAnnotationProcessorPath(Iterable<File> annotationProcessorPath)`
Uses the given annotation processor path for the compilation instead of the system annotation processor path.
`final Compiler`
Compiler.`withClasspath(Iterable<File> classPath)`
Uses the given classpath for the compilation instead of the system classpath.
`final Compiler`
Compiler.`withClasspathFrom(ClassLoader classloader)`
Deprecated.
prefer `Compiler.withClasspath(Iterable)`.
`final Compiler`
Compiler.`withOptions(Iterable<? extends Object> options)`
Passes command-line options to the compiler.
`final Compiler`
Compiler.`withOptions(Object... options)`
Passes command-line options to the compiler.
`final Compiler`
Compiler.`withProcessors(Iterable<? extends Processor> processors)`
Uses annotation processors during compilation.
`final Compiler`
Compiler.`withProcessors(Processor... processors)`
Uses annotation processors during compilation.