public class AnnotationPayloadUnwrappingCheck extends AnnotationParametersAbstractCheck
Unwrapping.Unwrap
or Unwrapping.Skip
annotationApiHelper
Constructor and Description |
---|
AnnotationPayloadUnwrappingCheck(AnnotationApiHelper annotationApiHelper,
Types typeUtils) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canCheckThisAnnotation(AnnotationMirror annotation)
Verify that this check class can process such annotation.
|
protected Set<ConstraintCheckIssue> |
doCheck(Element element,
AnnotationMirror annotation)
Method which actually performs the validation of the annotation parameters.
|
checkAnnotationType, checkField, checkMethod, checkNonAnnotationType
public AnnotationPayloadUnwrappingCheck(AnnotationApiHelper annotationApiHelper, Types typeUtils)
protected boolean canCheckThisAnnotation(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 Set<ConstraintCheckIssue> doCheck(Element 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-2020 Red Hat, Inc. All Rights Reserved