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
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
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<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.Clear all classpath.Clear all commandLineArguments.Clear all modulepath.Clear existing value of release.Clear all sourcepath.The command line arguments to pass to the compiler.commandLineArguments(List<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 voidHandles providers and decorators.release()The compiler release.The compiler release.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 voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
clearClasspath
-
classpath
-
addClasspath
-
addClasspath
-
clearModulepath
-
modulepath
-
addModulepath
-
addModulepath
-
clearSourcepath
-
sourcepath
-
addSourcepath
-
addSourcepath
-
clearCommandLineArguments
Clear all commandLineArguments.- Returns:
- updated builder instance
- See Also:
-
commandLineArguments
-
addCommandLineArguments
-
addCommandLineArgument
-
source
-
target
-
clearRelease
Clear existing value of release.- Returns:
- updated builder instance
- See Also:
-
release
-
outputDirectory
-
logger
Logger to use, falls back to system logger.- Parameters:
logger- logger- Returns:
- updated builder instance
- See Also:
-
classpath
-
modulepath
-
sourcepath
-
commandLineArguments
-
source
-
target
-
release
-
outputDirectory
-
logger
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-