Examples of AnnotationCollector


Examples of org.apache.cocoon.rest.controller.util.AnnotationCollector

public class AnnotationCollectorTest {

    @Test
    public void testGetAnnotatedFields() {
        AnnotationCollector annotationCollector = new AnnotationCollector();
        Map<Class<? extends Annotation>, List<Field>> annotatedFields = annotationCollector
                .getAnnotatedFields(AnnotatedClass.class);

        List<Field> requestHeaderParameterFields = annotatedFields.get(RequestHeader.class);
        List<Field> requestParameterFields = annotatedFields.get(RequestParameter.class);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.AnnotationCollector

      }
    }
  }

  public void getAllAnnotationContexts(int targetType, int typeParameterIndex, List allAnnotationContexts) {
    AnnotationCollector collector = new AnnotationCollector(this, targetType, typeParameterIndex, allAnnotationContexts);
    if (this.annotations != null) {
      int annotationsLength = this.annotations.length;
      for (int i = 0; i < annotationsLength; i++)
        this.annotations[i].traverse(collector, (BlockScope) null);
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.AnnotationCollector

    }
    visitor.endVisit(this, scope);
  }

  public void getAllAnnotationContexts(int targetType, int info, List allTypeAnnotationContexts) {
    AnnotationCollector collector = new AnnotationCollector(this, targetType, info, allTypeAnnotationContexts);
    this.type.traverse(collector, (BlockScope) null);
    if (this.annotationsOnDimensions != null)  {
      int dimensionsLength = this.dimensions.length;
      for (int i = 0; i < dimensionsLength; i++) {
        Annotation [] annotations = this.annotationsOnDimensions[i];
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.AnnotationCollector

  }
  classFile.completeMethodInfo(this.binding, methodAttributeOffset, attributeNumber);
}

public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) {
  AnnotationCollector collector = new AnnotationCollector(null, targetType, allAnnotationContexts);
  for (int i = 0, max = this.annotations.length; i < max; i++) {
    Annotation annotation = this.annotations[i];
    annotation.traverse(collector, (BlockScope) null);
  }
}
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.AnnotationCollector

    return LOCAL_VARIABLE;
  }

  // for local variables
  public void getAllAnnotationContexts(int targetType, LocalVariableBinding localVariable, List allAnnotationContexts) {
    AnnotationCollector collector = new AnnotationCollector(this, targetType, localVariable, allAnnotationContexts);
    this.traverseWithoutInitializer(collector, (BlockScope) null);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.AnnotationCollector

    this.traverseWithoutInitializer(collector, (BlockScope) null);
  }

  // for arguments
  public void getAllAnnotationContexts(int targetType, int parameterIndex, List allAnnotationContexts) {
    AnnotationCollector collector = new AnnotationCollector(this, targetType, parameterIndex, allAnnotationContexts);
    this.traverse(collector, (BlockScope) null);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.AnnotationCollector

    }
  }
  codeStream.recordPositionsFrom(pc, this.sourceStart);
}
public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) {
  AnnotationCollector collector = new AnnotationCollector(this.type, targetType, allAnnotationContexts);
  for (int i = 0, max = this.annotations.length; i < max; i++) {
    Annotation annotation = this.annotations[i];
    annotation.traverse(collector, (BlockScope) null);
  }
}
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.AnnotationCollector

      this.ignoreFurtherInvestigation = true;
    }
  }

  public void getAllAnnotationContexts(int targetType, List allAnnotationContexts) {
    AnnotationCollector collector = new AnnotationCollector(this.returnType, targetType, allAnnotationContexts);
    for (int i = 0, max = this.annotations.length; i < max; i++) {
      Annotation annotation = this.annotations[i];
      annotation.traverse(collector, (BlockScope) null);
    }
  }
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.