public abstract class AnnotationMessageCheck extends AnnotationParametersAbstractCheck
AnnotationUserMessageCheck
- checks that message defined by a user is valid,
AnnotationDefaultMessageCheck
- checks that default message is valid.annotationApiHelper
Constructor and Description |
---|
AnnotationMessageCheck(AnnotationApiHelper annotationApiHelper) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canCheckThisAnnotation(javax.lang.model.element.AnnotationMirror annotation)
Verify that this check class can process such annotation.
|
protected boolean |
checkMessage(java.lang.String message)
Verifies that message passed as parameter is valid (passes a regexp check).
|
checkAnnotationType, checkField, checkMethod, checkNonAnnotationType, doCheck
public AnnotationMessageCheck(AnnotationApiHelper annotationApiHelper)
protected boolean canCheckThisAnnotation(javax.lang.model.element.AnnotationMirror annotation)
AnnotationParametersAbstractCheck
canCheckThisAnnotation
in class AnnotationParametersAbstractCheck
annotation
- annotation you want to process by this classtrue
if such annotation can be processed, false
otherwise.protected boolean checkMessage(java.lang.String message)
message
- a message to verifytrue
if message is valid, false
otherwiseCopyright © 2007-2022 Red Hat, Inc. All Rights Reserved