public interface ConstraintCheck
Implementations represent checks, which determine whether a given constraint annotation is allowed at a given element.
Implementations should be derived from AbstractConstraintCheck
in
order to implement only those check methods applicable for the element kinds
supported by the check.
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.
|
Set<ConstraintCheckError> |
checkField(VariableElement element,
AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given field.
|
Set<ConstraintCheckError> |
checkMethod(ExecutableElement element,
AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given method.
|
Set<ConstraintCheckError> |
checkNonAnnotationType(TypeElement element,
AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given type
declaration (class, interface, enum).
|
Set<ConstraintCheckError> checkField(VariableElement element, AnnotationMirror annotation)
element
- An annotated field.annotation
- An annotation at that field.Set<ConstraintCheckError> checkMethod(ExecutableElement element, AnnotationMirror annotation)
element
- An annotated method.annotation
- An annotation at that method.Set<ConstraintCheckError> checkAnnotationType(TypeElement element, AnnotationMirror annotation)
element
- An annotated annotation type declaration.annotation
- An annotation at that annotation type.Set<ConstraintCheckError> checkNonAnnotationType(TypeElement element, AnnotationMirror annotation)
element
- An annotated type declaration.annotation
- An annotation at that type.Copyright © 2007-2014 Red Hat Middleware, LLC. All Rights Reserved