Class ProcessorLogger

  • All Implemented Interfaces:
    Logger

    public final class ProcessorLogger
    extends java.lang.Object
    implements Logger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.StringBuffer logContent  
      private javax.annotation.processing.Messager messager  
      private Options options  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessorLogger​(javax.annotation.processing.Messager messager, Options options)  
    • Field Detail

      • messager

        private final javax.annotation.processing.Messager messager
      • options

        private final Options options
      • logContent

        private final java.lang.StringBuffer logContent
    • Constructor Detail

      • ProcessorLogger

        public ProcessorLogger​(javax.annotation.processing.Messager messager,
                               Options options)
    • Method Detail

      • note

        public void note​(LogLocation location,
                         java.lang.String message)
        Specified by:
        note in interface Logger
      • warning

        public void warning​(LogLocation location,
                            java.lang.String message)
        Specified by:
        warning in interface Logger
      • getFileContent

        public java.lang.String getFileContent()
        Specified by:
        getFileContent in interface Logger
      • exceptionToString

        public static java.lang.String exceptionToString​(java.lang.Exception exception)