public class TypeCheck extends AbstractConstraintCheck
Constructor and Description |
---|
TypeCheck(ConstraintHelper constraintHelper,
javax.lang.model.util.Types typeUtils,
AnnotationApiHelper annotationApiHelper) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ConstraintCheckIssue> |
checkField(javax.lang.model.element.VariableElement element,
javax.lang.model.element.AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given field.
|
java.util.Set<ConstraintCheckIssue> |
checkMethod(javax.lang.model.element.ExecutableElement element,
javax.lang.model.element.AnnotationMirror annotation)
Checks, whether the given annotation is allowed at the given method.
|
java.util.Set<ConstraintCheckIssue> |
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).
|
checkAnnotationType
public TypeCheck(ConstraintHelper constraintHelper, javax.lang.model.util.Types typeUtils, AnnotationApiHelper annotationApiHelper)
public java.util.Set<ConstraintCheckIssue> checkField(javax.lang.model.element.VariableElement element, javax.lang.model.element.AnnotationMirror annotation)
ConstraintCheck
checkField
in interface ConstraintCheck
checkField
in class AbstractConstraintCheck
element
- An annotated field.annotation
- An annotation at that field.public java.util.Set<ConstraintCheckIssue> checkMethod(javax.lang.model.element.ExecutableElement element, javax.lang.model.element.AnnotationMirror annotation)
ConstraintCheck
checkMethod
in interface ConstraintCheck
checkMethod
in class AbstractConstraintCheck
element
- An annotated method.annotation
- An annotation at that method.public java.util.Set<ConstraintCheckIssue> checkNonAnnotationType(javax.lang.model.element.TypeElement element, javax.lang.model.element.AnnotationMirror annotation)
ConstraintCheck
checkNonAnnotationType
in interface ConstraintCheck
checkNonAnnotationType
in class AbstractConstraintCheck
element
- An annotated type declaration.annotation
- An annotation at that type.Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved