- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
CompilerOptions.BuilderBase.CompilerOptionsImpl
Provides configuration to the javac compiler.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forCompilerOptions
.static class
CompilerOptions.BuilderBase<BUILDER extends CompilerOptions.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends CompilerOptions> Fluent API builder base forCompilerOptions
. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompilerOptions.Builder
builder()
Create a new fluent API builder to customize configuration.static CompilerOptions.Builder
builder
(CompilerOptions instance) Create a new fluent API builder from an existing instance.The classpath to pass to the compiler.The command line arguments to pass to the compiler.static CompilerOptions
create()
Create a new instance with default values.logger()
Logger to use, falls back to system logger.The modulepath to pass to the compiler.Target directory to generate class files to.source()
The compiler source version.The source path to pass to the compiler.target()
The compiler target version.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
classpath
The classpath to pass to the compiler.- Returns:
- classpath
-
modulepath
The modulepath to pass to the compiler.- Returns:
- the module path
-
sourcepath
The source path to pass to the compiler.- Returns:
- the source path
-
commandLineArguments
The command line arguments to pass to the compiler.- Returns:
- arguments
-
source
String source()The compiler source version.- Returns:
- source version
-
target
String target()The compiler target version.- Returns:
- target version
-
outputDirectory
Path outputDirectory()Target directory to generate class files to.- Returns:
- output directory
-
logger
CodegenLogger logger()Logger to use, falls back to system logger.- Returns:
- logger
-