public class RetentionPolicyCheck extends AbstractConstraintCheck
RetentionPolicy.RUNTIME
is declared for constraint annotation types.Constructor and Description |
---|
RetentionPolicyCheck(AnnotationApiHelper annotationApiHelper) |
Modifier and Type | Method and Description |
---|---|
Set<ConstraintCheckError> |
checkAnnotationType(TypeElement element,
AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given annotation
type declaration.
|
checkField, checkMethod, checkNonAnnotationType
public RetentionPolicyCheck(AnnotationApiHelper annotationApiHelper)
public Set<ConstraintCheckError> checkAnnotationType(TypeElement element, AnnotationMirror annotation)
ConstraintCheck
checkAnnotationType
in interface ConstraintCheck
checkAnnotationType
in class AbstractConstraintCheck
element
- An annotated annotation type declaration.annotation
- An annotation at that annotation type.Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved