Interface JctFlagBuilder
public interface JctFlagBuilder
Interface for defining a common flag builder for compilers.
- Author:
- Ashley Scopes
-
Method Summary
Modifier and TypeMethodDescriptionannotationProcessorOptions
(List<String> options) Add annotation processor options.build()
Build the list of command line options to use.compilationMode
(CompilationMode compilationMode) Set the compilation mode to run under.compilerOptions
(List<String> options) Add additional command line options.debuggingInfo
(Set<DebuggingInfo> set) Add the debugging info flags.failOnWarnings
(boolean enabled) Set whether to treat warnings as errors or not.parameterInfoEnabled
(boolean enabled) Specify whether to include parameter reflection info in the compiled classes.previewFeatures
(boolean enabled) Add preview feature preferences.Add the release version.showDeprecationWarnings
(boolean enabled) Add deprecation warning preferences.showWarnings
(boolean enabled) Add warnings preferences.Add the source version.Add the target version.verbose
(boolean enabled) Add output-verbosity preferences.
-
Method Details
-
verbose
Add output-verbosity preferences.- Parameters:
enabled
- whether the feature is enabled.- Returns:
- this builder.
-
previewFeatures
Add preview feature preferences.- Parameters:
enabled
- whether the feature is enabled.- Returns:
- this builder.
-
showWarnings
Add warnings preferences.- Parameters:
enabled
- whether the feature is enabled.- Returns:
- this builder.
-
failOnWarnings
Set whether to treat warnings as errors or not.- Parameters:
enabled
- whether to treat warnings as errors.- Returns:
- this builder.
-
compilationMode
Set the compilation mode to run under.- Parameters:
compilationMode
- the compilation mode to run under.- Returns:
- this builder.
-
showDeprecationWarnings
Add deprecation warning preferences.- Parameters:
enabled
- whether the feature is enabled.- Returns:
- this builder.
-
release
Add the release version.- Parameters:
version
- the release version, ornull
if not specified.- Returns:
- this builder.
-
source
Add the source version.- Parameters:
version
- the source version, ornull
if not specified.- Returns:
- this builder.
-
target
Add the target version.- Parameters:
version
- the target version, ornull
if not specified.- Returns:
- this builder.
-
debuggingInfo
Add the debugging info flags.- Parameters:
set
- the set of debugging info flags to enable.- Returns:
- this builder.
- Since:
- 3.0.0
-
parameterInfoEnabled
Specify whether to include parameter reflection info in the compiled classes.- Parameters:
enabled
- whether the parameter info is enabled or not.- Returns:
- this builder.
- Since:
- 3.0.0
-
annotationProcessorOptions
Add annotation processor options.- Parameters:
options
- the annotation processor options to use.- Returns:
- this builder.
-
compilerOptions
Add additional command line options.- Parameters:
options
- the additional commandline options to add.- Returns:
- this builder.
-
build
-