public class ConstraintCheckFactory extends Object
ConstraintCheck
s required for
the validation of annotations at given elements.Constructor and Description |
---|
ConstraintCheckFactory(Types typeUtils,
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, 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-2014 Red Hat Middleware, LLC. All Rights Reserved