Class DefaultModelElementProcessorContext.DelegatingMessager

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.annotation.processing.Messager delegate  
      private boolean isErroneous  
      private boolean verbose  
    • Constructor Summary

      Constructors 
      Constructor Description
      DelegatingMessager​(javax.annotation.processing.Messager delegate, boolean verbose)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isErroneous()  
      void note​(int level, Message msg, java.lang.Object... args)
      Just log as plain note
      void printMessage​(javax.lang.model.element.Element e, javax.lang.model.element.AnnotationMirror a, javax.lang.model.element.AnnotationValue v, Message msg, java.lang.Object... args)
      Prints a message of the specified kind at the location of the annotation value inside the annotation positionHint of the annotated element.
      void printMessage​(javax.lang.model.element.Element e, javax.lang.model.element.AnnotationMirror a, Message msg, java.lang.Object... args)
      Prints a message of the specified kind at the location of the annotation positionHint of the annotated element.
      void printMessage​(javax.lang.model.element.Element e, Message msg, java.lang.Object... args)
      Prints a message of the specified kind at the location of the element.
      void printMessage​(Message msg, java.lang.Object... args)
      Prints a message of the specified kind.
      • Methods inherited from class java.lang.Object

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

      • delegate

        private final javax.annotation.processing.Messager delegate
      • isErroneous

        private boolean isErroneous
      • verbose

        private final boolean verbose
    • Constructor Detail

      • DelegatingMessager

        DelegatingMessager​(javax.annotation.processing.Messager delegate,
                           boolean verbose)
    • Method Detail

      • printMessage

        public void printMessage​(Message msg,
                                 java.lang.Object... args)
        Description copied from interface: FormattingMessager
        Prints a message of the specified kind.
        Specified by:
        printMessage in interface FormattingMessager
        Parameters:
        msg - the message
        args - Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored
      • printMessage

        public void printMessage​(javax.lang.model.element.Element e,
                                 Message msg,
                                 java.lang.Object... args)
        Description copied from interface: FormattingMessager
        Prints a message of the specified kind at the location of the element.
        Specified by:
        printMessage in interface FormattingMessager
        Parameters:
        e - the element to use as a position hint
        msg - the message
        args - Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored
      • printMessage

        public void printMessage​(javax.lang.model.element.Element e,
                                 javax.lang.model.element.AnnotationMirror a,
                                 Message msg,
                                 java.lang.Object... args)
        Description copied from interface: FormattingMessager
        Prints a message of the specified kind at the location of the annotation positionHint of the annotated element.
        Specified by:
        printMessage in interface FormattingMessager
        Parameters:
        e - the annotated element
        a - the annotation to use as a position hint (can be null)
        msg - the message
        args - Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored
      • printMessage

        public void printMessage​(javax.lang.model.element.Element e,
                                 javax.lang.model.element.AnnotationMirror a,
                                 javax.lang.model.element.AnnotationValue v,
                                 Message msg,
                                 java.lang.Object... args)
        Description copied from interface: FormattingMessager
        Prints a message of the specified kind at the location of the annotation value inside the annotation positionHint of the annotated element.
        Specified by:
        printMessage in interface FormattingMessager
        Parameters:
        e - the annotated element
        a - the annotation containing the annotation value
        v - the annotation value to use as a position hint
        msg - the message
        args - Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored
      • note

        public void note​(int level,
                         Message msg,
                         java.lang.Object... args)
        Description copied from interface: FormattingMessager
        Just log as plain note
        Specified by:
        note in interface FormattingMessager
        Parameters:
        level - nesting level
        msg - the log message
        args - the arguments