public class ConstraintCheckFactory extends Object
ConstraintCheck
s required for
the validation of annotations at given elements.Constructor and Description |
---|
ConstraintCheckFactory(Types typeUtils,
Elements elementUtils,
ConstraintHelper constraintHelper,
AnnotationApiHelper annotationApiHelper,
boolean methodConstraintsSupported) |
Modifier and Type | Method and Description |
---|---|
ConstraintChecks |
getConstraintChecks(Element annotatedElement,
AnnotationMirror annotation)
Returns those checks that have to be performed to validate the given
annotation at the given element.
|
public ConstraintCheckFactory(Types typeUtils, Elements elementUtils, ConstraintHelper constraintHelper, AnnotationApiHelper annotationApiHelper, boolean methodConstraintsSupported)
public ConstraintChecks getConstraintChecks(Element annotatedElement, 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-2021 Red Hat, Inc. All Rights Reserved