Interface FormattingMessager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isErroneous()  
      void note​(int level, Message log, 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.
    • Method Detail

      • printMessage

        void printMessage​(Message msg,
                          java.lang.Object... args)
        Prints a message of the specified kind.
        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

        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.
        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

        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.
        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

        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.
        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

        void note​(int level,
                  Message log,
                  java.lang.Object... args)
        Just log as plain note
        Parameters:
        level - nesting level
        log - the log message
        args - the arguments
      • isErroneous

        boolean isErroneous()