Examples of AnnotationApiHelper


Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

      ProcessingEnvironment processingEnvironment, MessagerAdapter messager, Configuration configuration) {

    this.messager = messager;
    this.verbose = configuration.isVerbose();

    AnnotationApiHelper annotationApiHelper = new AnnotationApiHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils()
    );

    ConstraintHelper constraintHelper = new ConstraintHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils(), annotationApiHelper
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

      ProcessingEnvironment processingEnvironment, MessagerAdapter messager, boolean verbose) {

    this.messager = messager;
    this.verbose = verbose;

    AnnotationApiHelper annotationApiHelper = new AnnotationApiHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils()
    );

    ConstraintHelper constraintHelper = new ConstraintHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils(), annotationApiHelper
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

  @Override
  public boolean process(
      final Set<? extends TypeElement> annotations,
      final RoundEnvironment roundEnvironment) {

    AnnotationApiHelper typeHelper = new AnnotationApiHelper(
        processingEnv.getElementUtils(), processingEnv.getTypeUtils()
    );

    ElementVisitor<Void, List<AnnotationMirror>> visitor = new ConstraintAnnotationVisitor(
        processingEnv, messager, verbose
    );

    for ( TypeElement oneAnnotation : annotations ) {

      Set<? extends Element> elementsWithConstraintAnnotation =
          roundEnvironment.getElementsAnnotatedWith( oneAnnotation );

      for ( Element oneAnnotatedElement : elementsWithConstraintAnnotation ) {

        List<AnnotationMirror> mirrorsOfCurrentAnnotation =
            typeHelper.filterByType( oneAnnotatedElement.getAnnotationMirrors(), oneAnnotation.asType() );

        oneAnnotatedElement.accept( visitor, mirrorsOfCurrentAnnotation );
      }
    }
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

      ProcessingEnvironment processingEnvironment, MessagerAdapter messager, boolean verbose) {

    this.messager = messager;
    this.verbose = verbose;

    AnnotationApiHelper annotationApiHelper = new AnnotationApiHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils()
    );

    ConstraintHelper constraintHelper = new ConstraintHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils(), annotationApiHelper
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

      ProcessingEnvironment processingEnvironment, MessagerAdapter messager, Configuration configuration) {

    this.messager = messager;
    this.verbose = configuration.isVerbose();

    AnnotationApiHelper annotationApiHelper = new AnnotationApiHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils()
    );

    ConstraintHelper constraintHelper = new ConstraintHelper(
        processingEnvironment.getTypeUtils(), annotationApiHelper
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

  @Override
  public boolean process(
      final Set<? extends TypeElement> annotations,
      final RoundEnvironment roundEnvironment) {

    AnnotationApiHelper typeHelper = new AnnotationApiHelper(
        processingEnv.getElementUtils(), processingEnv.getTypeUtils()
    );

    ElementVisitor<Void, List<AnnotationMirror>> visitor = new ConstraintAnnotationVisitor(
        processingEnv, messager, configuration
    );

    for ( TypeElement oneAnnotation : annotations ) {

      //Indicates that the annotation's type isn't on the class path of the compiled
      //project. Let the compiler deal with that and print an appropriate error.
      if ( oneAnnotation.getKind() != ElementKind.ANNOTATION_TYPE ) {
        continue;
      }

      Set<? extends Element> elementsWithConstraintAnnotation =
          roundEnvironment.getElementsAnnotatedWith( oneAnnotation );

      for ( Element oneAnnotatedElement : elementsWithConstraintAnnotation ) {

        List<AnnotationMirror> mirrorsOfCurrentAnnotation =
            typeHelper.filterByType( oneAnnotatedElement.getAnnotationMirrors(), oneAnnotation.asType() );

        oneAnnotatedElement.accept( visitor, mirrorsOfCurrentAnnotation );
      }
    }
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

      ProcessingEnvironment processingEnvironment, MessagerAdapter messager, boolean verbose) {

    this.messager = messager;
    this.verbose = verbose;

    AnnotationApiHelper annotationApiHelper = new AnnotationApiHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils()
    );

    ConstraintHelper constraintHelper = new ConstraintHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils(), annotationApiHelper
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

  @Override
  public boolean process(
      final Set<? extends TypeElement> annotations,
      final RoundEnvironment roundEnvironment) {

    AnnotationApiHelper typeHelper = new AnnotationApiHelper(
        processingEnv.getElementUtils(), processingEnv.getTypeUtils()
    );

    ElementVisitor<Void, List<AnnotationMirror>> visitor = new ConstraintAnnotationVisitor(
        processingEnv, messager, verbose
    );

    for ( TypeElement oneAnnotation : annotations ) {

      Set<? extends Element> elementsWithConstraintAnnotation =
          roundEnvironment.getElementsAnnotatedWith( oneAnnotation );

      for ( Element oneAnnotatedElement : elementsWithConstraintAnnotation ) {

        List<AnnotationMirror> mirrorsOfCurrentAnnotation =
            typeHelper.filterByType( oneAnnotatedElement.getAnnotationMirrors(), oneAnnotation.asType() );

        oneAnnotatedElement.accept( visitor, mirrorsOfCurrentAnnotation );
      }
    }
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

      ProcessingEnvironment processingEnvironment, MessagerAdapter messager, Configuration configuration) {

    this.messager = messager;
    this.verbose = configuration.isVerbose();

    AnnotationApiHelper annotationApiHelper = new AnnotationApiHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils()
    );

    ConstraintHelper constraintHelper = new ConstraintHelper(
        processingEnvironment.getElementUtils(), processingEnvironment.getTypeUtils(), annotationApiHelper
View Full Code Here

Examples of org.hibernate.validator.ap.util.AnnotationApiHelper

  @Override
  public boolean process(
      final Set<? extends TypeElement> annotations,
      final RoundEnvironment roundEnvironment) {

    AnnotationApiHelper typeHelper = new AnnotationApiHelper(
        processingEnv.getElementUtils(), processingEnv.getTypeUtils()
    );

    ElementVisitor<Void, List<AnnotationMirror>> visitor = new ConstraintAnnotationVisitor(
        processingEnv, messager, configuration
    );

    for ( TypeElement oneAnnotation : annotations ) {

      Set<? extends Element> elementsWithConstraintAnnotation =
          roundEnvironment.getElementsAnnotatedWith( oneAnnotation );

      for ( Element oneAnnotatedElement : elementsWithConstraintAnnotation ) {

        List<AnnotationMirror> mirrorsOfCurrentAnnotation =
            typeHelper.filterByType( oneAnnotatedElement.getAnnotationMirrors(), oneAnnotation.asType() );

        oneAnnotatedElement.accept( visitor, mirrorsOfCurrentAnnotation );
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.