|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
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). |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |