Package org.aspectj.apache.bcel.classfile

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


    switch(tag) {
    case CONSTANT_InterfaceMethodref:
    case CONSTANT_Methodref:
      // Get class_index and name_and_type_index, depending on type
      if(tag == CONSTANT_Methodref) {
  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();
View Full Code Here


  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

    adjustSize();

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

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

    return ret;
View Full Code Here

TOP

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

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.