Class MapperAnnotatedFormattingMessenger

  • All Implemented Interfaces:
    FormattingMessager

    public class MapperAnnotatedFormattingMessenger
    extends Object
    implements FormattingMessager
    Handles redirection of errors/warnings so that they're shown on the mapper instead of hidden on a superclass.
    Author:
    Ben Zegveld
    • Method Detail

      • printMessage

        public void printMessage​(Message msg,
                                 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​(Element e,
                                 Message msg,
                                 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​(Element e,
                                 AnnotationMirror a,
                                 Message msg,
                                 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​(Element e,
                                 AnnotationMirror a,
                                 AnnotationValue v,
                                 Message msg,
                                 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 log,
                         Object... args)
        Description copied from interface: FormattingMessager
        Just log as plain note
        Specified by:
        note in interface FormattingMessager
        Parameters:
        level - nesting level
        log - the log message
        args - the arguments