Interface CompilerOptions

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
CompilerOptions.BuilderBase.CompilerOptionsImpl

public interface CompilerOptions extends Prototype.Api
Provides configuration to the javac compiler.
See Also:
  • Method Details

    • builder

      static CompilerOptions.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static CompilerOptions.Builder builder(CompilerOptions instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static CompilerOptions create()
      Create a new instance with default values.
      Returns:
      a new instance
    • classpath

      List<Path> classpath()
      The classpath to pass to the compiler.
      Returns:
      classpath
    • modulepath

      List<Path> modulepath()
      The modulepath to pass to the compiler.
      Returns:
      the module path
    • sourcepath

      List<Path> sourcepath()
      The source path to pass to the compiler.
      Returns:
      the source path
    • commandLineArguments

      List<String> commandLineArguments()
      The command line arguments to pass to the compiler.
      Returns:
      arguments
    • source

      String source()
      The compiler source version.
      Returns:
      source version
    • target

      String target()
      The compiler target version.
      Returns:
      target version
    • outputDirectory

      Path outputDirectory()
      Target directory to generate class files to.
      Returns:
      output directory
    • logger

      CodegenLogger logger()
      Logger to use, falls back to system logger.
      Returns:
      logger