Package org.aspectj.apache.bcel.classfile

Examples of org.aspectj.apache.bcel.classfile.EnclosingMethod


    }

    for (Attribute attr : javaClass.getAttributes()) { // bug339300
      ConstantPool cpool = javaClass.getConstantPool();
      if (attr instanceof EnclosingMethod) {
        EnclosingMethod enclosingMethodAttribute = (EnclosingMethod) attr;
        if (enclosingMethodAttribute.getEnclosingClassIndex() != 0) {
          ConstantClass outerClassInfo = enclosingMethodAttribute.getEnclosingClass();
          String outerClassName = cpool.getConstantUtf8(outerClassInfo.getNameIndex()).getValue().replace('/', '.');
          UnresolvedType outer = UnresolvedType.forName(outerClassName);
          return outer.resolve(getResolvedTypeX().getWorld());
        }
      }
View Full Code Here

TOP

Related Classes of org.aspectj.apache.bcel.classfile.EnclosingMethod

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.