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
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
clearClasspath
Clear all classpath.- Returns:
- updated builder instance
- See Also:
-
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- add single classpath- Returns:
- updated builder instance
- See Also:
-
clearModulepath
Clear all modulepath.- 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- add single the module path- Returns:
- updated builder instance
- See Also:
-
clearSourcepath
Clear all sourcepath.- 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- add single the source path- Returns:
- updated builder instance
- See Also:
-
clearCommandLineArguments
Clear all commandLineArguments.- 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- add single 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:
-
clearRelease
Clear existing value of release.- Returns:
- updated builder instance
- See Also:
-
release
- Parameters:
release- release for compilation- 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:
- 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
The compiler source version.- Returns:
- source version
-
target
The compiler target version.- Returns:
- target version
-
release
- Returns:
- release for compilation
-
outputDirectory
Target directory to generate class files to.- Returns:
- output directory
-
logger
Logger to use, falls back to system logger.- Returns:
- logger
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-