Package com.blazebit.apt.validation.constraint

Examples of com.blazebit.apt.validation.constraint.ValueConstraintValidator


            continue;
          }

          constraintValidatorClass = (Class<? extends ValueConstraintValidator>) getConstraintValidatorClass(
              memberAnnotationTypeElement, ValueConstraint.class);
          ValueConstraintValidator validator = getConstraintValidator(
              constraintValidatorClass,
              valueConstraintValidatorMap);

          if (validator != null) {
            for (Element e : roundEnv
                .getElementsAnnotatedWith(annotationType)) {
              AnnotationMirror elementAnnotationMirror = AnnotationProcessingUtils
                  .findAnnotationMirror(processingEnv, e,
                      annotationType);
              Object actualValue = AnnotationProcessingUtils
                  .getAnnotationElementValue(
                      processingEnv,
                      elementAnnotationMirror,
                      annotationMember.getSimpleName()
                          .toString()).getValue();
              validator.validate(processingEnv, roundEnv,
                  annotationType, annotationMirror,
                  annotationMember, e, actualValue);
            }
          }
        }
View Full Code Here

TOP

Related Classes of com.blazebit.apt.validation.constraint.ValueConstraintValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.