Class TurbineLog


  • public class TurbineLog
    extends java.lang.Object
    A log that collects diagnostics.
    • Constructor Detail

      • TurbineLog

        public TurbineLog()
    • Method Detail

      • diagnostics

        public com.google.common.collect.ImmutableList<TurbineDiagnostic> diagnostics()
      • maybeThrow

        public void maybeThrow()
      • anyErrors

        public boolean anyErrors()
      • errorRaised

        public boolean errorRaised()
        Returns true if a non-deferrable error was raised during annotation processing, i.e. an error reported by an annotation processor.

        Errors reported by turbine (e.g. missing symbols) are non-fatal, since they may be fixed by code generated in later processing rounds.

      • clear

        public void clear()
        Reset the log between annotation processing rounds.
      • diagnostic

        public void diagnostic​(javax.tools.Diagnostic.Kind severity,
                               java.lang.String message)
        Reports an annotation processing diagnostic with no position information.