public interface ValidationMessage
Modifier and Type | Interface | Description |
---|---|---|
static class |
ValidationMessage.Type |
Validation message type enum.
|
Modifier and Type | Method | Description |
---|---|---|
AnnotationMirror |
getAnnotationMirror() |
The annotation the error occurred on.
|
AnnotationValue |
getAnnotationValue() |
The value of the annotation which caused the error.
|
Element |
getElement() |
Returns the element that caused the error.
|
String |
getMessage() |
Returns the error message.
|
default boolean |
printMessage(Messager messager) |
Prints the message and returns
true if the message was an error message. |
ValidationMessage.Type |
type() |
The type of the message.
|
ValidationMessage.Type type()
Element getElement()
AnnotationMirror getAnnotationMirror()
null
if this was not an annotation errorAnnotationValue getAnnotationValue()
null
String getMessage()
default boolean printMessage(Messager messager)
true
if the message was an error message.messager
- the messager used to print the messagetrue
if this was an error message otherwise false
Copyright © 2018. All rights reserved.