Class JavaCompilationResult

java.lang.Object
com.regnosys.rosetta.common.compile.JavaCompilationResult

public class JavaCompilationResult extends Object
Provides success state and diagnostics for the results of Java compilations
  • Constructor Details

  • Method Details

    • isCompilationSuccessful

      public boolean isCompilationSuccessful()
      Get the compilation success state.
      Returns:
      true if and only if all the files compiled without errors; false otherwise
    • getCompilationCompletionState

      public CompilationCompletionState getCompilationCompletionState()
      Get the compilation completion state
      Returns:
      CompilationCompletionState which enumerates whether the compilation completed successfully, completed with failures or did not complete at all. A failure to complete entirely could be due to a timeout, a cancellation or an execution error in the complication process.
    • getDiagnostics

      public List<Diagnostic<? extends JavaFileObject>> getDiagnostics()
      Returns a list of Java diagnostics resulting from the compilation containing for example errors, warnings and compilation messages.
      Returns:
      a list of diagnostics for JavaFileObject