Package org.aspectj.weaver.bcel

Examples of org.aspectj.weaver.bcel.BcelTypeMunger


          WeaverMessages.format(WeaverMessages.ASPECT_NEEDED,entry.aspectType,onType),
          onType.getSourceLocation(), null);
        continue;
      }
     
      ret.add(new BcelTypeMunger(entry.typeMunger, aspectType));
    }
    return ret;
  }
View Full Code Here


      // FIXME asc perf cache the result of discovering the member that contains the real annotations
      if (rMember.isAnnotatedElsewhere()) {
        if (kind==Shadow.FieldGet || kind==Shadow.FieldSet) {
        List mungers = rMember.getDeclaringType().resolve(shadow.getIWorld()).getInterTypeMungers(); // FIXME asc should include supers with getInterTypeMungersIncludingSupers?
        for (Iterator iter = mungers.iterator(); iter.hasNext();) {
          BcelTypeMunger typeMunger = (BcelTypeMunger) iter.next();
          if (typeMunger.getMunger() instanceof NewFieldTypeMunger) {
            ResolvedMember fakerm = typeMunger.getSignature();
            if (fakerm.equals(member)) {
              ResolvedMember ajcMethod = AjcMemberMaker.interFieldInitializer(fakerm,typeMunger.getAspectType());
                ResolvedMember rmm       = findMethod(typeMunger.getAspectType(),ajcMethod);
            toMatchAgainst = rmm;
            }
          }
        } 
        }
View Full Code Here

    if (member.isAnnotatedElsewhere() && member.getKind()==Member.FIELD) {
      // FIXME asc duplicate of code in AnnotationPattern.matchInternal()?  same fixmes apply here.
      ResolvedMember [] mems = member.getDeclaringType().resolve(world).getDeclaredFields(); // FIXME asc should include supers with getInterTypeMungersIncludingSupers?
      List mungers = member.getDeclaringType().resolve(world).getInterTypeMungers();
    for (Iterator iter = mungers.iterator(); iter.hasNext();) {
          BcelTypeMunger typeMunger = (BcelTypeMunger) iter.next();
      if (typeMunger.getMunger() instanceof NewFieldTypeMunger) {
        ResolvedMember fakerm = typeMunger.getSignature();
        ResolvedMember ajcMethod = AjcMemberMaker.interFieldInitializer(fakerm,typeMunger.getAspectType());
          ResolvedMember rmm       = findMethod(typeMunger.getAspectType(),ajcMethod);
        if (fakerm.equals(member)) {
        member = rmm;
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.bcel.BcelTypeMunger

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.