public class JavacMessager extends Object implements Messager
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Method and Description |
---|---|
int |
errorCount() |
boolean |
errorRaised() |
void |
newRound(Context context) |
void |
printError(String msg)
Prints an error message.
|
void |
printMessage(Diagnostic.Kind kind,
CharSequence msg)
Prints a message of the specified kind.
|
void |
printMessage(Diagnostic.Kind kind,
CharSequence msg,
Element e)
Prints a message of the specified kind at the location of the
element.
|
void |
printMessage(Diagnostic.Kind kind,
CharSequence msg,
Element e,
AnnotationMirror a)
Prints a message of the specified kind at the location of the
annotation mirror of the annotated element.
|
void |
printMessage(Diagnostic.Kind kind,
CharSequence msg,
Element e,
AnnotationMirror a,
AnnotationValue v)
Prints a message of the specified kind at the location of the
annotation value inside the annotation mirror of the annotated
element.
|
void |
printNotice(String msg)
Prints a notice.
|
void |
printWarning(String msg)
Prints a warning message.
|
String |
toString() |
int |
warningCount() |
public void printMessage(Diagnostic.Kind kind, CharSequence msg)
Messager
printMessage
in interface Messager
kind
- the kind of messagemsg
- the message, or an empty string if nonepublic void printMessage(Diagnostic.Kind kind, CharSequence msg, Element e)
Messager
printMessage
in interface Messager
kind
- the kind of messagemsg
- the message, or an empty string if nonee
- the element to use as a position hintpublic void printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a)
printMessage
in interface Messager
kind
- the kind of messagemsg
- the message, or an empty string if nonee
- the annotated elementa
- the annotation to use as a position hintpublic void printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v)
printMessage
in interface Messager
kind
- the kind of messagemsg
- the message, or an empty string if nonee
- the annotated elementa
- the annotation containing the annotaiton valuev
- the annotation value to use as a position hintpublic void printError(String msg)
printError(null, msg)
.msg
- the message, or an empty string if nonepublic void printWarning(String msg)
printWarning(null, msg)
.msg
- the message, or an empty string if nonepublic void printNotice(String msg)
msg
- the message, or an empty string if nonepublic boolean errorRaised()
public int errorCount()
public int warningCount()
public void newRound(Context context)
Copyright © 2015. All rights reserved.