public class TypeCheck extends AbstractConstraintCheck
| Constructor and Description |
|---|
TypeCheck(ConstraintHelper constraintHelper) |
| Modifier and Type | Method and Description |
|---|---|
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).
|
checkAnnotationTypepublic TypeCheck(ConstraintHelper constraintHelper)
public Set<ConstraintCheckError> checkField(javax.lang.model.element.VariableElement element, javax.lang.model.element.AnnotationMirror annotation)
ConstraintCheckcheckField in interface ConstraintCheckcheckField in class AbstractConstraintCheckelement - An annotated field.annotation - An annotation at that field.public Set<ConstraintCheckError> checkMethod(javax.lang.model.element.ExecutableElement element, javax.lang.model.element.AnnotationMirror annotation)
ConstraintCheckcheckMethod in interface ConstraintCheckcheckMethod in class AbstractConstraintCheckelement - An annotated method.annotation - An annotation at that method.public Set<ConstraintCheckError> checkNonAnnotationType(javax.lang.model.element.TypeElement element, javax.lang.model.element.AnnotationMirror annotation)
ConstraintCheckcheckNonAnnotationType in interface ConstraintCheckcheckNonAnnotationType in class AbstractConstraintCheckelement - An annotated type declaration.annotation - An annotation at that type.Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved