Class DefaultModelElementProcessorContext.DelegatingMessager
- java.lang.Object
-
- org.mapstruct.ap.internal.processor.DefaultModelElementProcessorContext.DelegatingMessager
-
- All Implemented Interfaces:
FormattingMessager
- Enclosing class:
- DefaultModelElementProcessorContext
private static final class DefaultModelElementProcessorContext.DelegatingMessager extends java.lang.Object implements FormattingMessager
-
-
Field Summary
Fields Modifier and Type Field Description private javax.annotation.processing.Messagerdelegateprivate booleanisErroneousprivate booleanverbose
-
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 booleanisErroneous()voidnote(int level, Message msg, java.lang.Object... args)Just log as plain notevoidprintMessage(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.voidprintMessage(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.voidprintMessage(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.voidprintMessage(Message msg, java.lang.Object... args)Prints a message of the specified kind.
-
-
-
Method Detail
-
printMessage
public void printMessage(Message msg, java.lang.Object... args)
Description copied from interface:FormattingMessagerPrints a message of the specified kind.- Specified by:
printMessagein interfaceFormattingMessager- 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
public void printMessage(javax.lang.model.element.Element e, Message msg, java.lang.Object... args)Description copied from interface:FormattingMessagerPrints a message of the specified kind at the location of the element.- Specified by:
printMessagein interfaceFormattingMessager- 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
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:FormattingMessagerPrints a message of the specified kind at the location of the annotation positionHint of the annotated element.- Specified by:
printMessagein interfaceFormattingMessager- 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
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: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 interfaceFormattingMessager- 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
public void note(int level, Message msg, java.lang.Object... args)Description copied from interface:FormattingMessagerJust log as plain note- Specified by:
notein interfaceFormattingMessager- Parameters:
level- nesting levelmsg- the log messageargs- the arguments
-
isErroneous
public boolean isErroneous()
- Specified by:
isErroneousin interfaceFormattingMessager
-
-