Class AnnotationLogger

  • All Implemented Interfaces:
    android.databinding.tool.util.L.Client

    public class AnnotationLogger
    extends java.lang.Object
    implements android.databinding.tool.util.L.Client
    This 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flushMessages​(javax.annotation.processing.ProcessingEnvironment processingEnvironment)  
      void printMessage​(javax.tools.Diagnostic.Kind kind, java.lang.String message, javax.lang.model.element.Element element)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationLogger

        public AnnotationLogger()
    • Method Detail

      • printMessage

        public void printMessage​(javax.tools.Diagnostic.Kind kind,
                                 java.lang.String message,
                                 javax.lang.model.element.Element element)
        Specified by:
        printMessage in interface android.databinding.tool.util.L.Client
      • flushMessages

        public void flushMessages​(javax.annotation.processing.ProcessingEnvironment processingEnvironment)