Examples of ConstantInterfaceMethodref


Examples of org.apache.bcel.classfile.ConstantInterfaceMethodref

                if (opcode == INVOKEINTERFACE) { // Special treatment needed
                    bytes.readUnsignedByte(); // Redundant
                    bytes.readUnsignedByte(); // Reserved
//                    int nargs = bytes.readUnsignedByte(); // Redundant
//                    int reserved = bytes.readUnsignedByte(); // Reserved
                    ConstantInterfaceMethodref c = (ConstantInterfaceMethodref) constant_pool
                            .getConstant(m_index, CONSTANT_InterfaceMethodref);
                    class_index = c.getClassIndex();
                    str = constant_pool.constantToString(c);
                    index = c.getNameAndTypeIndex();
                } else {
                    ConstantMethodref c = (ConstantMethodref) constant_pool.getConstant(m_index,
                            CONSTANT_Methodref);
                    class_index = c.getClassIndex();
                    str = constant_pool.constantToString(c);
                    index = c.getNameAndTypeIndex();
                }
                name = Class2HTML.referenceClass(class_index);
                str = Class2HTML.toHTML(constant_pool.constantToString(constant_pool.getConstant(
                        index, CONSTANT_NameAndType)));
                // Get signature, i.e., types
View Full Code Here

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

  ConstantMethodref c = (ConstantMethodref)constant_pool.getConstant(index, CONSTANT_Methodref);
  class_index = c.getClassIndex();
  name_index  = c.getNameAndTypeIndex();
      }
      else {
  ConstantInterfaceMethodref c1 = (ConstantInterfaceMethodref)constant_pool.getConstant(index, CONSTANT_InterfaceMethodref);
  class_index = c1.getClassIndex();
  name_index  = c1.getNameAndTypeIndex();
      }

      // Get method name and its class
      String method_name  = constant_pool.constantToString(name_index, CONSTANT_NameAndType);
      String html_method_name = Class2HTML.toHTML(method_name);
View Full Code Here

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

      if(opcode == INVOKEINTERFACE) { // Special treatment needed
  int nargs    = bytes.readUnsignedByte(); // Redundant
  int reserved = bytes.readUnsignedByte(); // Reserved

  ConstantInterfaceMethodref c=(ConstantInterfaceMethodref)constant_pool.getConstant(m_index, CONSTANT_InterfaceMethodref);

  class_index = c.getClassIndex();
  str = constant_pool.constantToString(c);
  index = c.getNameAndTypeIndex();
      }
      else {
  ConstantMethodref c = (ConstantMethodref)constant_pool.getConstant(m_index, CONSTANT_Methodref);
  class_index = c.getClassIndex();
     
  str  = constant_pool.constantToString(c);
  index = c.getNameAndTypeIndex();
      }
       
      name = Class2HTML.referenceClass(class_index);
      str = Class2HTML.toHTML(constant_pool.constantToString(constant_pool.getConstant(index, CONSTANT_NameAndType)));
View Full Code Here

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

    adjustSize();

    class_index         = addClass(class_name);
    name_and_type_index = addNameAndType(method_name, signature);
    ret = index;
    constants[index++] = new ConstantInterfaceMethodref(class_index, name_and_type_index);

    cp_table.put(class_name + IMETHODREF_DELIM + method_name +
     IMETHODREF_DELIM + signature, new Index(ret));

    return ret;
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.