Interface JctFlagBuilder


public interface JctFlagBuilder
Interface for defining a common flag builder for compilers.
Author:
Ashley Scopes
  • Method Details

    • verbose

      JctFlagBuilder verbose(boolean enabled)
      Add output-verbosity preferences.
      Parameters:
      enabled - whether the feature is enabled.
      Returns:
      this builder.
    • previewFeatures

      JctFlagBuilder previewFeatures(boolean enabled)
      Add preview feature preferences.
      Parameters:
      enabled - whether the feature is enabled.
      Returns:
      this builder.
    • showWarnings

      JctFlagBuilder showWarnings(boolean enabled)
      Add warnings preferences.
      Parameters:
      enabled - whether the feature is enabled.
      Returns:
      this builder.
    • failOnWarnings

      JctFlagBuilder failOnWarnings(boolean enabled)
      Set whether to treat warnings as errors or not.
      Parameters:
      enabled - whether to treat warnings as errors.
      Returns:
      this builder.
    • compilationMode

      Set the compilation mode to run under.
      Parameters:
      compilationMode - the compilation mode to run under.
      Returns:
      this builder.
    • showDeprecationWarnings

      Add deprecation warning preferences.
      Parameters:
      enabled - whether the feature is enabled.
      Returns:
      this builder.
    • release

      Add the release version.
      Parameters:
      version - the release version, or null if not specified.
      Returns:
      this builder.
    • source

      Add the source version.
      Parameters:
      version - the source version, or null if not specified.
      Returns:
      this builder.
    • target

      Add the target version.
      Parameters:
      version - the target version, or null if not specified.
      Returns:
      this builder.
    • debuggingInfo

      Add the debugging info flags.
      Parameters:
      set - the set of debugging info flags to enable.
      Returns:
      this builder.
      Since:
      3.0.0
    • parameterInfoEnabled

      Specify whether to include parameter reflection info in the compiled classes.
      Parameters:
      enabled - whether the parameter info is enabled or not.
      Returns:
      this builder.
      Since:
      3.0.0
    • annotationProcessorOptions

      Add annotation processor options.
      Parameters:
      options - the annotation processor options to use.
      Returns:
      this builder.
    • compilerOptions

      Add additional command line options.
      Parameters:
      options - the additional commandline options to add.
      Returns:
      this builder.
    • build

      Build the list of command line options to use.
      Returns:
      the command line options to use.