Describes the Messager functionality provided by the incremental Java compiler.
The Messager instance can be downcasted to SakerMessager during annotation processing.
The interface provides additional functions for printing messages that are based on some other elements. These functions allow providing originating elements the same way as the Filer class.
public void | printMessage( Prints a message of the specified kind at the location of the annotation value inside the annotation mirror of
the annotated element. |
public void | printMessage( Prints a message of the specified kind at the location of the annotation mirror of the annotated element. |
public void | printMessage( Prints a message of the specified kind at the location of the element. |
public void | printMessage( Prints a message of the specified kind. |
From: Messager |
public abstract void printMessage(Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v, Element... originatingElements)
Prints a message of the specified kind at the location of the annotation value inside the annotation mirror of
the annotated element.
kindThe kind of message.
msgThe message, or an empty string if none.
eThe annotated element.
aThe annotation containing the annotation value.
vThe annotation value to use as a position hint.
originatingElementsThe elements causally associated with the origin of this message, may be elided or
null
.public abstract void printMessage(Kind kind, CharSequence msg, Element e, AnnotationMirror a, Element... originatingElements)
Prints a message of the specified kind at the location of the annotation mirror of the annotated element.
kindThe kind of message.
msgThe message, or an empty string if none.
eThe annotated element.
aThe annotation to use as a position hint.
originatingElementsThe elements causally associated with the origin of this message, may be elided or
null
.public abstract void printMessage(Kind kind, CharSequence msg, Element e, Element... originatingElements)
Prints a message of the specified kind at the location of the element.
kindThe kind of message.
msgThe message, or an empty string if none.
eThe element to use as a position hint.
originatingElementsThe elements causally associated with the origin of this message, may be elided or
null
.Prints a message of the specified kind.
kindThe kind of message.
msgThe message, or an empty string if none.
originatingElementsThe elements causally associated with the origin of this message, may be elided or
null
.