Package com.google.turbine.diag
Class TurbineLog
- java.lang.Object
-
- com.google.turbine.diag.TurbineLog
-
public class TurbineLog extends java.lang.ObjectA log that collects diagnostics.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTurbineLog.TurbineLogWithSourceA log for a specific source file.
-
Constructor Summary
Constructors Constructor Description TurbineLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleananyErrors()voidclear()Reset the log between annotation processing rounds.voiddiagnostic(javax.tools.Diagnostic.Kind severity, java.lang.String message)Reports an annotation processing diagnostic with no position information.com.google.common.collect.ImmutableList<TurbineDiagnostic>diagnostics()booleanerrorRaised()Returns true if a non-deferrable error was raised during annotation processing, i.e.voidmaybeThrow()TurbineLog.TurbineLogWithSourcewithSource(SourceFile source)
-
-
-
Method Detail
-
withSource
public TurbineLog.TurbineLogWithSource withSource(SourceFile source)
-
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.
-
-