Interface JctCompilation


@API(since="0.0.1", status=STABLE) public interface JctCompilation
Interface representing the result of a compilation.
Since:
0.0.1
Author:
Ashley Scopes
  • Method Details

    • isFailOnWarnings

      boolean isFailOnWarnings()
      Determine if warnings were treated as errors.
      Returns:
      true if warnings were treated as errors, or false otherwise.
    • isSuccessful

      boolean isSuccessful()
      Determine if the compilation was successful or not.
      Returns:
      true if successful, or false if not successful.
    • isFailure

      default boolean isFailure()
      Determine if the compilation was a failure or not.
      Returns:
      true if not successful, or false if successful.
    • getOutputLines

      Get the lines of output produced by the compiler, if any were captured.

      This is separate to diagnostics.

      Returns:
      the lines of output.
    • getCompilationUnits

      Get the compilation units used in the compilation.
      Returns:
      the compilation units.
    • getDiagnostics

      Get the diagnostics that were reported by the compilation.
      Returns:
      the diagnostics
    • getFileManager

      Get the file manager that was used to store and manage files.
      Returns:
      the file manager.
    • getClassOutputs

      Get the output container group for class outputs.
      Returns:
      the output container group, or null if it does not exist.
    • getSourceOutputs

      Get the output container group for source outputs.
      Returns:
      the output container group, or null if it does not exist.
    • getClassPath

      Get the package container group for the class path.
      Returns:
      the package container group, or null if it does not exist.
    • getSourcePath

      Get the package container group for the source path.
      Returns:
      the package container group, or null if it does not exist.
    • getAnnotationProcessorPath

      Get the package container group for the annotation processor path.
      Returns:
      the package container group, or null if it does not exist.
    • getAnnotationProcessorModulePath

      Get the module container group for the annotation processor module path.
      Returns:
      the module container group, or null if it does not exist.
    • getPlatformClassPath

      Get the package container group for the platform class path (a.k.a. the bootstrap class path).
      Returns:
      the package container group, or null if it does not exist.
    • getNativeHeaderOutputs

      Get the output container group for the native header file outputs.
      Returns:
      the output container group, or null if it does not exist.
    • getModuleSourcePath

      Get the module container group for the module source path.
      Returns:
      the module container group, or null if it does not exist.
    • getUpgradeModulePath

      Get the module container group for the upgrade module path.
      Returns:
      the module container group, or null if it does not exist.
    • getSystemModules

      Get the module container group for all system modules that are part of the JDK distribution.
      Returns:
      the module container group, or null if it does not exist.
    • getModulePath

      Get the module container group for the module path.
      Returns:
      the module container group, or null if it does not exist.
    • getPatchModulePath

      Get the module container group for the patch module path.
      Returns:
      the module container group, or null if it does not exist.