Class MapperAnnotatedFormattingMessenger
- java.lang.Object
- 
- org.mapstruct.ap.internal.processor.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
 
- 
- 
Constructor SummaryConstructors Constructor Description MapperAnnotatedFormattingMessenger(FormattingMessager delegateMessager, TypeElement mapperTypeElement, TypeUtils typeUtils)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisErroneous()voidnote(int level, Message log, Object... args)Just 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.
 
- 
- 
- 
Constructor Detail- 
MapperAnnotatedFormattingMessengerpublic MapperAnnotatedFormattingMessenger(FormattingMessager delegateMessager, TypeElement mapperTypeElement, TypeUtils typeUtils) 
 
- 
 - 
Method Detail- 
printMessagepublic void printMessage(Message msg, Object... args) Description copied from interface:FormattingMessagerPrints a message of the specified kind.- Specified by:
- printMessagein 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
 
 - 
printMessagepublic void printMessage(Element e, Message msg, Object... args) Description copied from interface:FormattingMessagerPrints a message of the specified kind at the location of the element.- Specified by:
- printMessagein 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
 
 - 
printMessagepublic void printMessage(Element e, AnnotationMirror a, Message msg, Object... args) Description copied from interface:FormattingMessagerPrints a message of the specified kind at the location of the annotation positionHint of the annotated element.- Specified by:
- printMessagein 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
 
 - 
printMessagepublic void printMessage(Element e, AnnotationMirror a, AnnotationValue v, Message msg, Object... args) Description copied from interface:FormattingMessagerPrints a message of the specified kind at the location of the annotation value inside the annotation positionHint of the annotated element.- Specified by:
- printMessagein 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
 
 - 
notepublic void note(int level, Message log, Object... args)Description copied from interface:FormattingMessagerJust log as plain note- Specified by:
- notein interface- FormattingMessager
- Parameters:
- level- nesting level
- log- the log message
- args- the arguments
 
 - 
isErroneouspublic boolean isErroneous() - Specified by:
- isErroneousin interface- FormattingMessager
 
 
- 
 
-