Package com.sun.mirror.apt
Interface Messager
-
- All Known Subinterfaces:
EclipseMessager
public interface MessagerAMessagerprovides the way for an annotation processor to report error messages, warnings, and other notices.- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprintError(SourcePosition pos, String msg)Prints an error message.voidprintError(String msg)Prints an error message.voidprintNotice(SourcePosition pos, String msg)Prints a notice.voidprintNotice(String msg)Prints a notice.voidprintWarning(SourcePosition pos, String msg)Prints a warning message.voidprintWarning(String msg)Prints a warning message.
-
-
-
Method Detail
-
printError
void printError(String msg)
Prints an error message. Equivalent toprintError(null, msg).- Parameters:
msg- the message, or an empty string if none
-
printError
void printError(SourcePosition pos, String msg)
Prints an error message.- Parameters:
pos- the position where the error occured, or null if it is unknown or not applicablemsg- the message, or an empty string if none
-
printWarning
void printWarning(String msg)
Prints a warning message. Equivalent toprintWarning(null, msg).- Parameters:
msg- the message, or an empty string if none
-
printWarning
void printWarning(SourcePosition pos, String msg)
Prints a warning message.- Parameters:
pos- the position where the warning occured, or null if it is unknown or not applicablemsg- the message, or an empty string if none
-
printNotice
void printNotice(String msg)
Prints a notice. Equivalent toprintNotice(null, msg).- Parameters:
msg- the message, or an empty string if none
-
printNotice
void printNotice(SourcePosition pos, String msg)
Prints a notice.- Parameters:
pos- the position where the noticed occured, or null if it is unknown or not applicablemsg- the message, or an empty string if none
-
-