public class ConstraintCheckFactory
extends java.lang.Object
ConstraintCheck
s required for
the validation of annotations at given elements.Constructor and Description |
---|
ConstraintCheckFactory(javax.lang.model.util.Types typeUtils,
javax.lang.model.util.Elements elementUtils,
ConstraintHelper constraintHelper,
AnnotationApiHelper annotationApiHelper,
boolean methodConstraintsSupported) |
Modifier and Type | Method and Description |
---|---|
ConstraintChecks |
getConstraintChecks(javax.lang.model.element.Element annotatedElement,
javax.lang.model.element.AnnotationMirror annotation)
Returns those checks that have to be performed to validate the given
annotation at the given element.
|
public ConstraintCheckFactory(javax.lang.model.util.Types typeUtils, javax.lang.model.util.Elements elementUtils, ConstraintHelper constraintHelper, AnnotationApiHelper annotationApiHelper, boolean methodConstraintsSupported)
public ConstraintChecks getConstraintChecks(javax.lang.model.element.Element annotatedElement, javax.lang.model.element.AnnotationMirror annotation)
ConstraintChecks
instance will be returned. It's therefore always
safe to operate on the returned object.annotatedElement
- An annotated element, e.g. a type declaration or a method.annotation
- An annotation.Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved