| java.lang.Object com.sun.tools.javac.processing.JavacMessager
JavacMessager | public class JavacMessager implements Messager(Code) | | An implementation of the Messager built on top of log.
This is NOT part of any API supported by Sun Microsystems.
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.
|
Method Summary | |
public int | errorCount() | public boolean | errorRaised() | public void | newRound(Context context) | public void | printError(String msg) Prints an error message. | public void | printMessage(Diagnostic.Kind kind, CharSequence msg) | public void | printMessage(Diagnostic.Kind kind, CharSequence msg, Element e) | public 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. | public 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. | public void | printNotice(String msg) Prints a notice. | public void | printWarning(String msg) Prints a warning message. | public String | toString() |
errorCount | int errorCount(Code) | | |
errorCount | public int errorCount()(Code) | | |
errorRaised | public boolean errorRaised()(Code) | | |
printError | public void printError(String msg)(Code) | | Prints an error message.
Equivalent to
printError(null, msg) .
Parameters: msg - the message, or an empty string if none |
printMessage | public void printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a)(Code) | | Prints a message of the specified kind at the location of the
annotation mirror of the annotated element.
Parameters: kind - the kind of message Parameters: msg - the message, or an empty string if none Parameters: e - the annotated element Parameters: a - the annotation to use as a position hint |
printMessage | public void printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v)(Code) | | Prints a message of the specified kind at the location of the
annotation value inside the annotation mirror of the annotated
element.
Parameters: kind - the kind of message Parameters: msg - the message, or an empty string if none Parameters: e - the annotated element Parameters: a - the annotation containing the annotaiton value Parameters: v - the annotation value to use as a position hint |
printNotice | public void printNotice(String msg)(Code) | | Prints a notice.
Parameters: msg - the message, or an empty string if none |
printWarning | public void printWarning(String msg)(Code) | | Prints a warning message.
Equivalent to
printWarning(null, msg) .
Parameters: msg - the message, or an empty string if none |
|
|