Class ConstraintCheckFactory
java.lang.Object
org.hibernate.validator.ap.internal.checks.ConstraintCheckFactory
A factory in charge of determining the
ConstraintCheck
s required for
the validation of annotations at given elements.- Author:
- Gunnar Morling
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintCheckFactory
(Types typeUtils, Elements elementUtils, ConstraintHelper constraintHelper, AnnotationApiHelper annotationApiHelper, boolean methodConstraintsSupported) -
Method Summary
Modifier and TypeMethodDescriptiongetConstraintChecks
(Element annotatedElement, AnnotationMirror annotation) Returns those checks that have to be performed to validate the given annotation at the given element.
-
Constructor Details
-
ConstraintCheckFactory
public ConstraintCheckFactory(Types typeUtils, Elements elementUtils, ConstraintHelper constraintHelper, AnnotationApiHelper annotationApiHelper, boolean methodConstraintsSupported)
-
-
Method Details
-
getConstraintChecks
Returns those checks that have to be performed to validate the given annotation at the given element. In case no checks have to be performed (e.g. because the given annotation is no constraint annotation) an emptyConstraintChecks
instance will be returned. It's therefore always safe to operate on the returned object.- Parameters:
annotatedElement
- An annotated element, e.g. a type declaration or a method.annotation
- An annotation.- Returns:
- The checks to be performed to validate the given annotation at the given element.
-