|
||||||||||
| 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(javax.lang.model.element.TypeElement element,
javax.lang.model.element.AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given annotation type declaration. |
Set<ConstraintCheckError> |
checkField(javax.lang.model.element.VariableElement element,
javax.lang.model.element.AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given field. |
Set<ConstraintCheckError> |
checkMethod(javax.lang.model.element.ExecutableElement element,
javax.lang.model.element.AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given method. |
Set<ConstraintCheckError> |
checkNonAnnotationType(javax.lang.model.element.TypeElement element,
javax.lang.model.element.AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given type declaration (class, interface, enum). |
| Method Detail |
|---|
Set<ConstraintCheckError> checkField(javax.lang.model.element.VariableElement element,
javax.lang.model.element.AnnotationMirror annotation)
element - An annotated field.annotation - An annotation at that field.
Set<ConstraintCheckError> checkMethod(javax.lang.model.element.ExecutableElement element,
javax.lang.model.element.AnnotationMirror annotation)
element - An annotated method.annotation - An annotation at that method.
Set<ConstraintCheckError> checkAnnotationType(javax.lang.model.element.TypeElement element,
javax.lang.model.element.AnnotationMirror annotation)
element - An annotated annotation type declaration.annotation - An annotation at that annotation type.
Set<ConstraintCheckError> checkNonAnnotationType(javax.lang.model.element.TypeElement element,
javax.lang.model.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 | |||||||||