Class AnnotationLogger
- java.lang.Object
-
- android.databinding.tool.reflection.annotation.AnnotationLogger
-
- All Implemented Interfaces:
android.databinding.tool.util.L.Client
public class AnnotationLogger extends java.lang.Object implements android.databinding.tool.util.L.ClientThis logger stores messages that are to be put in the ProcessingEnvironment's Messager and then writes them all out when flushMessages() is called. Elements are kept in a round-independent format so that the messages can be logged independently from the annotation processing round in which they were created.flushMessages(ProcessingEnvironment)should be called when all rounds are over so that superfluous errors aren't generated.
-
-
Constructor Summary
Constructors Constructor Description AnnotationLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushMessages(javax.annotation.processing.ProcessingEnvironment processingEnvironment)voidprintMessage(javax.tools.Diagnostic.Kind kind, java.lang.String message, javax.lang.model.element.Element element)
-
-
-
Method Detail
-
printMessage
public void printMessage(javax.tools.Diagnostic.Kind kind, java.lang.String message, javax.lang.model.element.Element element)- Specified by:
printMessagein interfaceandroid.databinding.tool.util.L.Client
-
flushMessages
public void flushMessages(javax.annotation.processing.ProcessingEnvironment processingEnvironment)
-
-