Interface ValidationMessage

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  ValidationMessage.Type
      Validation message type enum.
    • Method Detail

      • getElement

        javax.lang.model.element.Element getElement()
        Returns the element that caused the error.
        Returns:
        the element that caused the error.
      • getAnnotationMirror

        javax.lang.model.element.AnnotationMirror getAnnotationMirror()
        The annotation the error occurred on.
        Returns:
        the annotation the error occurred on or null if this was not an annotation error
      • getAnnotationValue

        javax.lang.model.element.AnnotationValue getAnnotationValue()
        The value of the annotation which caused the error.
        Returns:
        the value of the annotation or null
      • getMessage

        java.lang.String getMessage()
        Returns the error message.
        Returns:
        the error message.
      • printMessage

        default boolean printMessage​(javax.annotation.processing.Messager messager)
        Prints the message and returns true if the message was an error message.
        Parameters:
        messager - the messager used to print the message
        Returns:
        true if this was an error message otherwise false