|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.processing.JavacMessager
public class JavacMessager
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.
| Field Summary | |
|---|---|
(package private) int |
errorCount
|
(package private) Log |
log
|
(package private) JavacProcessingEnvironment |
processingEnv
|
| Constructor Summary | |
|---|---|
JavacMessager(Context context,
JavacProcessingEnvironment processingEnv)
|
|
| Method Summary | |
|---|---|
int |
errorCount()
|
boolean |
errorRaised()
|
void |
newRound(Context context)
|
void |
printError(java.lang.String msg)
Prints an error message. |
void |
printMessage(Diagnostic.Kind kind,
java.lang.CharSequence msg)
Prints a message of the specified kind. |
void |
printMessage(Diagnostic.Kind kind,
java.lang.CharSequence msg,
Element e)
Prints a message of the specified kind at the location of the element. |
void |
printMessage(Diagnostic.Kind kind,
java.lang.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,
java.lang.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(java.lang.String msg)
Prints a notice. |
void |
printWarning(java.lang.String msg)
Prints a warning message. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
Log log
JavacProcessingEnvironment processingEnv
int errorCount
| Constructor Detail |
|---|
JavacMessager(Context context,
JavacProcessingEnvironment processingEnv)
| Method Detail |
|---|
public void printMessage(Diagnostic.Kind kind,
java.lang.CharSequence msg)
Messager
printMessage in interface Messagerkind - the kind of messagemsg - the message, or an empty string if none
public void printMessage(Diagnostic.Kind kind,
java.lang.CharSequence msg,
Element e)
Messager
printMessage in interface Messagerkind - the kind of messagemsg - the message, or an empty string if nonee - the element to use as a position hint
public void printMessage(Diagnostic.Kind kind,
java.lang.CharSequence msg,
Element e,
AnnotationMirror a)
printMessage in interface Messagerkind - the kind of messagemsg - the message, or an empty string if nonee - the annotated elementa - the annotation to use as a position hint
public void printMessage(Diagnostic.Kind kind,
java.lang.CharSequence msg,
Element e,
AnnotationMirror a,
AnnotationValue v)
printMessage in interface Messagerkind - 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(java.lang.String msg)
printError(null, msg).
msg - the message, or an empty string if nonepublic void printWarning(java.lang.String msg)
printWarning(null, msg).
msg - the message, or an empty string if nonepublic void printNotice(java.lang.String msg)
msg - the message, or an empty string if nonepublic boolean errorRaised()
public int errorCount()
public void newRound(Context context)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||