Interface representing the result of a compilation.
- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Method Summary
Modifier and TypeMethodDescriptiondefault ModuleContainerGroupGet the module container group for the annotation processor module path.default PackageContainerGroupGet the package container group for the annotation processor path.default OutputContainerGroupGet the output container group for class outputs.default PackageContainerGroupGet the package container group for the class path.Set<? extends JavaFileObject>Get the compilation units used in the compilation.List<? extends TraceDiagnostic<? extends JavaFileObject>>Get the diagnostics that were reported by the compilation.Get the file manager that was used to store and manage files.default ModuleContainerGroupGet the module container group for the module path.default ModuleContainerGroupGet the module container group for the module source path.default OutputContainerGroupGet the output container group for the native header file outputs.Get the lines of output produced by the compiler, if any were captured.default ModuleContainerGroupGet the module container group for the patch module path.default PackageContainerGroupGet the package container group for the platform class path (a.k.a.default OutputContainerGroupGet the output container group for source outputs.default PackageContainerGroupGet the package container group for the source path.default ModuleContainerGroupGet the module container group for all system modules that are part of the JDK distribution.default ModuleContainerGroupGet the module container group for the upgrade module path.booleanDetermine if warnings were treated as errors.default booleanDetermine if the compilation was a failure or not.booleanDetermine if the compilation was successful or not.
-
Method Details
-
isFailOnWarnings
boolean isFailOnWarnings()Determine if warnings were treated as errors.- Returns:
trueif warnings were treated as errors, orfalseotherwise.
-
isSuccessful
boolean isSuccessful()Determine if the compilation was successful or not.- Returns:
trueif successful, orfalseif not successful.
-
isFailure
Determine if the compilation was a failure or not.- Returns:
trueif not successful, orfalseif 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
Set<? extends JavaFileObject> getCompilationUnits()Get the compilation units used in the compilation.- Returns:
- the compilation units.
-
getDiagnostics
List<? extends TraceDiagnostic<? extends JavaFileObject>> 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
nullif it does not exist.
-
getSourceOutputs
Get the output container group for source outputs.- Returns:
- the output container group, or
nullif it does not exist.
-
getClassPath
Get the package container group for the class path.- Returns:
- the package container group, or
nullif it does not exist.
-
getSourcePath
Get the package container group for the source path.- Returns:
- the package container group, or
nullif it does not exist.
-
getAnnotationProcessorPath
Get the package container group for the annotation processor path.- Returns:
- the package container group, or
nullif it does not exist.
-
getAnnotationProcessorModulePath
Get the module container group for the annotation processor module path.- Returns:
- the module container group, or
nullif 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
nullif it does not exist.
-
getNativeHeaderOutputs
Get the output container group for the native header file outputs.- Returns:
- the output container group, or
nullif it does not exist.
-
getModuleSourcePath
Get the module container group for the module source path.- Returns:
- the module container group, or
nullif it does not exist.
-
getUpgradeModulePath
Get the module container group for the upgrade module path.- Returns:
- the module container group, or
nullif 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
nullif it does not exist.
-
getModulePath
Get the module container group for the module path.- Returns:
- the module container group, or
nullif it does not exist.
-
getPatchModulePath
Get the module container group for the patch module path.- Returns:
- the module container group, or
nullif it does not exist.
-