Package org.aspectj.internal.lang.annotation

Examples of org.aspectj.internal.lang.annotation.ajcDeclareAnnotation


   */
  public DeclareAnnotation[] getDeclareAnnotations() {
    List<DeclareAnnotation> decAs = new ArrayList<DeclareAnnotation>();
    for (Method method : clazz.getDeclaredMethods()) {
      if (method.isAnnotationPresent(ajcDeclareAnnotation.class)) {
        ajcDeclareAnnotation decAnn = method.getAnnotation(ajcDeclareAnnotation.class);
        // the target annotation is on this method...
        Annotation targetAnnotation = null;
        Annotation[] anns = method.getAnnotations();
        for (Annotation ann: anns) {
          if (ann.annotationType() != ajcDeclareAnnotation.class) {
            // this must be the one...
            targetAnnotation = ann;
            break;
          }
        }
        DeclareAnnotationImpl da = new DeclareAnnotationImpl(
            this,
            decAnn.kind(),
            decAnn.pattern(),
            targetAnnotation,
            decAnn.annotation()
            );
        decAs.add(da);
      }
    }
    if (getSupertype().isAspect()) {
View Full Code Here


   */
  public DeclareAnnotation[] getDeclareAnnotations() {
    List<DeclareAnnotation> decAs = new ArrayList<DeclareAnnotation>();
    for (Method method : clazz.getDeclaredMethods()) {
      if (method.isAnnotationPresent(ajcDeclareAnnotation.class)) {
        ajcDeclareAnnotation decAnn = method.getAnnotation(ajcDeclareAnnotation.class);
        // the target annotation is on this method...
        Annotation targetAnnotation = null;
        Annotation[] anns = method.getAnnotations();
        for (Annotation ann: anns) {
          if (ann.annotationType() != ajcDeclareAnnotation.class) {
            // this must be the one...
            targetAnnotation = ann;
            break;
          }
        }
        DeclareAnnotationImpl da = new DeclareAnnotationImpl(
            this,
            decAnn.kind(),
            decAnn.pattern(),
            targetAnnotation,
            decAnn.annotation()
            );
        decAs.add(da);
      }
    }
    if (getSupertype().isAspect()) {
View Full Code Here

TOP

Related Classes of org.aspectj.internal.lang.annotation.ajcDeclareAnnotation

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.