Class CompilerOptions.Builder
java.lang.Object
io.helidon.codegen.compiler.CompilerOptions.BuilderBase<CompilerOptions.Builder, CompilerOptions>
io.helidon.codegen.compiler.CompilerOptions.Builder
- All Implemented Interfaces:
Prototype.Builder<CompilerOptions.Builder, CompilerOptions>, Builder<CompilerOptions.Builder, CompilerOptions>, Supplier<CompilerOptions>
- Enclosing interface:
CompilerOptions
public static class CompilerOptions.Builder
extends CompilerOptions.BuilderBase<CompilerOptions.Builder, CompilerOptions>
implements Builder<CompilerOptions.Builder, CompilerOptions>
Fluent API builder for
CompilerOptions.-
Nested Class Summary
Nested classes/interfaces inherited from class CompilerOptions.BuilderBase
CompilerOptions.BuilderBase.CompilerOptionsImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class CompilerOptions.BuilderBase
addClasspath, addClasspath, addCommandLineArgument, addCommandLineArguments, addModulepath, addModulepath, addSourcepath, addSourcepath, classpath, classpath, clearClasspath, clearCommandLineArguments, clearModulepath, clearRelease, clearSourcepath, commandLineArguments, commandLineArguments, from, from, logger, logger, modulepath, modulepath, outputDirectory, outputDirectory, preBuildPrototype, release, release, source, source, sourcepath, sourcepath, target, target, toString, validatePrototypeModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault CompilerOptionsget()default CompilerOptions.Builderidentity()Instance of this builder as the correct type.default CompilerOptions.Builderupdate(Consumer<CompilerOptions.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault CompilerOptions.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<CompilerOptions.Builder, CompilerOptions>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<CompilerOptions.Builder, CompilerOptions>- Returns:
- instance of the built type
-