public class PrimitiveCheck extends AbstractConstraintCheck
Constructor and Description |
---|
PrimitiveCheck() |
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.
|
checkAnnotationType, checkNonAnnotationType
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.Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved