Package org.mapstruct.ap.internal.util
Interface FormattingMessager
- All Known Implementing Classes:
MapperAnnotatedFormattingMessenger
public interface FormattingMessager
Prints out diagnostics raised by the annotation processor. Messages are Java format strings taking the given
arguments for interpolation.
- Author:
- Sjaak Derksen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidJust log as plain notevoidprintMessage(Element e, AnnotationMirror a, AnnotationValue v, Message msg, Object... args) Prints a message of the specified kind at the location of the annotation value inside the annotation positionHint of the annotated element.voidprintMessage(Element e, AnnotationMirror a, Message msg, Object... args) Prints a message of the specified kind at the location of the annotation positionHint of the annotated element.voidprintMessage(Element e, Message msg, Object... args) Prints a message of the specified kind at the location of the element.voidprintMessage(Message msg, Object... args) Prints a message of the specified kind.
-
Method Details
-
printMessage
Prints a message of the specified kind.- Parameters:
msg- the messageargs- Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored
-
printMessage
Prints a message of the specified kind at the location of the element.- Parameters:
e- the element to use as a position hintmsg- the messageargs- Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored
-
printMessage
Prints a message of the specified kind at the location of the annotation positionHint of the annotated element.- Parameters:
e- the annotated elementa- the annotation to use as a position hint (can be null)msg- the messageargs- Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored
-
printMessage
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 elementa- the annotation containing the annotation valuev- the annotation value to use as a position hintmsg- the messageargs- Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored
-
note
Just log as plain note- Parameters:
level- nesting levellog- the log messageargs- the arguments
-
isErroneous
boolean isErroneous()
-