Module io.helidon.codegen.compiler
Package io.helidon.codegen.compiler
Class CompilerOptions.BuilderBase<BUILDER extends CompilerOptions.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends CompilerOptions>
java.lang.Object
io.helidon.codegen.compiler.CompilerOptions.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
CompilerOptions.Builder
- Enclosing interface:
CompilerOptions
public abstract static class CompilerOptions.BuilderBase<BUILDER extends CompilerOptions.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends CompilerOptions>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
CompilerOptions
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddClasspath
(Path classpath) The classpath to pass to the compiler.addClasspath
(List<? extends Path> classpath) The classpath to pass to the compiler.addCommandLineArgument
(String commandLineArgument) The command line arguments to pass to the compiler.addCommandLineArguments
(List<? extends String> commandLineArguments) The command line arguments to pass to the compiler.addModulepath
(Path modulepath) The modulepath to pass to the compiler.addModulepath
(List<? extends Path> modulepath) The modulepath to pass to the compiler.addSourcepath
(Path sourcepath) The source path to pass to the compiler.addSourcepath
(List<? extends Path> sourcepath) The source path to pass to the compiler.The classpath to pass to the compiler.The classpath to pass to the compiler.The command line arguments to pass to the compiler.commandLineArguments
(List<? extends String> commandLineArguments) The command line arguments to pass to the compiler.from
(CompilerOptions prototype) Update this builder from an existing prototype instance.from
(CompilerOptions.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.logger()
Logger to use, falls back to system logger.logger
(CodegenLogger logger) Logger to use, falls back to system logger.The modulepath to pass to the compiler.modulepath
(List<? extends Path> modulepath) The modulepath to pass to the compiler.Target directory to generate class files to.outputDirectory
(Path outputDirectory) Target directory to generate class files to.protected void
Handles providers and decorators.source()
The compiler source version.The compiler source version.The source path to pass to the compiler.sourcepath
(List<? extends Path> sourcepath) The source path to pass to the compiler.target()
The compiler target version.The compiler target version.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
classpath
The classpath to pass to the compiler.- Parameters:
classpath
- classpath- Returns:
- updated builder instance
- See Also:
-
addClasspath
The classpath to pass to the compiler.- Parameters:
classpath
- classpath- Returns:
- updated builder instance
- See Also:
-
addClasspath
The classpath to pass to the compiler.- Parameters:
classpath
- classpath- Returns:
- updated builder instance
- See Also:
-
modulepath
The modulepath to pass to the compiler.- Parameters:
modulepath
- the module path- Returns:
- updated builder instance
- See Also:
-
addModulepath
The modulepath to pass to the compiler.- Parameters:
modulepath
- the module path- Returns:
- updated builder instance
- See Also:
-
addModulepath
The modulepath to pass to the compiler.- Parameters:
modulepath
- the module path- Returns:
- updated builder instance
- See Also:
-
sourcepath
The source path to pass to the compiler.- Parameters:
sourcepath
- the source path- Returns:
- updated builder instance
- See Also:
-
addSourcepath
The source path to pass to the compiler.- Parameters:
sourcepath
- the source path- Returns:
- updated builder instance
- See Also:
-
addSourcepath
The source path to pass to the compiler.- Parameters:
sourcepath
- the source path- Returns:
- updated builder instance
- See Also:
-
commandLineArguments
The command line arguments to pass to the compiler.- Parameters:
commandLineArguments
- arguments- Returns:
- updated builder instance
- See Also:
-
addCommandLineArguments
The command line arguments to pass to the compiler.- Parameters:
commandLineArguments
- arguments- Returns:
- updated builder instance
- See Also:
-
addCommandLineArgument
The command line arguments to pass to the compiler.- Parameters:
commandLineArgument
- arguments- Returns:
- updated builder instance
- See Also:
-
source
The compiler source version.- Parameters:
source
- source version- Returns:
- updated builder instance
- See Also:
-
target
The compiler target version.- Parameters:
target
- target version- Returns:
- updated builder instance
- See Also:
-
outputDirectory
Target directory to generate class files to.- Parameters:
outputDirectory
- output directory- Returns:
- updated builder instance
- See Also:
-
logger
Logger to use, falls back to system logger.- Parameters:
logger
- logger- Returns:
- updated builder instance
- See Also:
-
classpath
The classpath to pass to the compiler.- Returns:
- the classpath
-
modulepath
The modulepath to pass to the compiler.- Returns:
- the modulepath
-
sourcepath
The source path to pass to the compiler.- Returns:
- the sourcepath
-
commandLineArguments
The command line arguments to pass to the compiler.- Returns:
- the command line arguments
-
source
The compiler source version.- Returns:
- the source
-
target
The compiler target version.- Returns:
- the target
-
outputDirectory
Target directory to generate class files to.- Returns:
- the output directory
-
logger
Logger to use, falls back to system logger.- Returns:
- the logger
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-