Interface MessagerUtils
-
-
Method Summary
Static Methods Modifier and Type Method Description static void
printError(javax.annotation.processing.Messager messager, java.lang.String pattern, java.lang.Object... args)
Prints an error message using the providedMessager
.static void
printError(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String pattern, java.lang.Object... args)
Prints an error message using theProcessingEnvironment
'sMessager
.static void
printMandatoryWarning(javax.annotation.processing.Messager messager, java.lang.String pattern, java.lang.Object... args)
Prints a mandatory warning message using the providedMessager
.static void
printMandatoryWarning(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String pattern, java.lang.Object... args)
Prints a mandatory warning message using theProcessingEnvironment
'sMessager
.static void
printMessage(javax.annotation.processing.Messager messager, javax.tools.Diagnostic.Kind kind, java.lang.String pattern, java.lang.Object... args)
Prints a message of the specified kind using the providedMessager
.static void
printMessage(javax.annotation.processing.ProcessingEnvironment processingEnv, javax.tools.Diagnostic.Kind kind, java.lang.String pattern, java.lang.Object... args)
Prints a message of the specified kind using theProcessingEnvironment
'sMessager
.static void
printNote(javax.annotation.processing.Messager messager, java.lang.String pattern, java.lang.Object... args)
Prints a note message using the providedMessager
.static void
printNote(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String pattern, java.lang.Object... args)
Prints a note message using theProcessingEnvironment
'sMessager
.static void
printWarning(javax.annotation.processing.Messager messager, java.lang.String pattern, java.lang.Object... args)
Prints a warning message using the providedMessager
.static void
printWarning(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String pattern, java.lang.Object... args)
Prints a warning message using theProcessingEnvironment
'sMessager
.
-
-
-
Method Detail
-
printNote
static void printNote(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String pattern, java.lang.Object... args)
Prints a note message using theProcessingEnvironment
'sMessager
.- Parameters:
processingEnv
- the processing environment to obtain the messager frompattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printNote
static void printNote(javax.annotation.processing.Messager messager, java.lang.String pattern, java.lang.Object... args)
Prints a note message using the providedMessager
.- Parameters:
messager
- the messager to use for printing the messagepattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printWarning
static void printWarning(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String pattern, java.lang.Object... args)
Prints a warning message using theProcessingEnvironment
'sMessager
.- Parameters:
processingEnv
- the processing environment to obtain the messager frompattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printWarning
static void printWarning(javax.annotation.processing.Messager messager, java.lang.String pattern, java.lang.Object... args)
Prints a warning message using the providedMessager
.- Parameters:
messager
- the messager to use for printing the messagepattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printMandatoryWarning
static void printMandatoryWarning(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String pattern, java.lang.Object... args)
Prints a mandatory warning message using theProcessingEnvironment
'sMessager
.- Parameters:
processingEnv
- the processing environment to obtain the messager frompattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printMandatoryWarning
static void printMandatoryWarning(javax.annotation.processing.Messager messager, java.lang.String pattern, java.lang.Object... args)
Prints a mandatory warning message using the providedMessager
.- Parameters:
messager
- the messager to use for printing the messagepattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printError
static void printError(javax.annotation.processing.ProcessingEnvironment processingEnv, java.lang.String pattern, java.lang.Object... args)
Prints an error message using theProcessingEnvironment
'sMessager
.- Parameters:
processingEnv
- the processing environment to obtain the messager frompattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printError
static void printError(javax.annotation.processing.Messager messager, java.lang.String pattern, java.lang.Object... args)
Prints an error message using the providedMessager
.- Parameters:
messager
- the messager to use for printing the messagepattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printMessage
static void printMessage(javax.annotation.processing.ProcessingEnvironment processingEnv, javax.tools.Diagnostic.Kind kind, java.lang.String pattern, java.lang.Object... args)
Prints a message of the specified kind using theProcessingEnvironment
'sMessager
.- Parameters:
processingEnv
- the processing environment to obtain the messager fromkind
- the kind of message to print (e.g., error, warning, note)pattern
- the message pattern to formatargs
- the arguments for the message pattern
-
printMessage
static void printMessage(javax.annotation.processing.Messager messager, javax.tools.Diagnostic.Kind kind, java.lang.String pattern, java.lang.Object... args)
Prints a message of the specified kind using the providedMessager
.- Parameters:
messager
- the messager to use for printing the messagekind
- the kind of message to print (e.g., error, warning, note)pattern
- the message pattern to formatargs
- the arguments for the message pattern
-
-