public class AnnotationDefaultMessageCheck extends AnnotationMessageCheck
annotationApiHelper
Constructor and Description |
---|
AnnotationDefaultMessageCheck(AnnotationApiHelper annotationApiHelper,
javax.lang.model.util.Elements elementUtils) |
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 java.util.Set<ConstraintCheckIssue> |
doCheck(javax.lang.model.element.Element element,
javax.lang.model.element.AnnotationMirror annotation)
Method which actually performs the validation of the annotation parameters.
|
checkMessage
checkAnnotationType, checkField, checkMethod, checkNonAnnotationType
public AnnotationDefaultMessageCheck(AnnotationApiHelper annotationApiHelper, javax.lang.model.util.Elements elementUtils)
protected boolean canCheckThisAnnotation(javax.lang.model.element.AnnotationMirror annotation)
AnnotationParametersAbstractCheck
canCheckThisAnnotation
in class AnnotationMessageCheck
annotation
- annotation you want to process by this classtrue
if such annotation can be processed, false
otherwise.protected java.util.Set<ConstraintCheckIssue> doCheck(javax.lang.model.element.Element element, javax.lang.model.element.AnnotationMirror annotation)
AnnotationParametersAbstractCheck
doCheck
in class AnnotationParametersAbstractCheck
element
- annotated elementannotation
- annotation to processConstraintCheckIssue
errors if there are any validation issues with the annotation
parametersCopyright © 2007-2022 Red Hat, Inc. All Rights Reserved