| Modifier and Type | Method and 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. |
Compiler |
Compiler.withAnnotationProcessorPath(Iterable<File> annotationProcessorPath)
Uses the given annotation processor path for the compilation instead of the system annotation
processor path.
|
Compiler |
Compiler.withClasspath(Iterable<File> classPath)
Uses the given classpath for the compilation instead of the system classpath.
|
Compiler |
Compiler.withClasspathFrom(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. |
Compiler |
Compiler.withOptions(Iterable<? extends Object> options)
Passes command-line options to the compiler.
|
Compiler |
Compiler.withOptions(Object... options)
Passes command-line options to the compiler.
|
Compiler |
Compiler.withProcessors(Iterable<? extends Processor> processors)
Uses annotation processors during compilation.
|
Compiler |
Compiler.withProcessors(Processor... processors)
Uses annotation processors during compilation.
|
Copyright © 2013–2022. All rights reserved.