/** * Reads the <code>class_index</code> field of the * <code>CONSTANT_Methodref_info</code> structure * at the given index. */ public int getMethodrefClass(int index) { MemberrefInfo minfo = (MemberrefInfo)getItem(index); return minfo.classIndex; }
/** * Reads the <code>name_and_type_index</code> field of the * <code>CONSTANT_InterfaceMethodref_info</code> structure * at the given index. */ public int getInterfaceMethodrefNameAndType(int index) { MemberrefInfo minfo = (MemberrefInfo)getItem(index); return minfo.nameAndTypeIndex; }
/** * Reads <code>CONSTANT_Float_info</code> structure * at the given index. * * @return the value specified by this entry. */ public float getFloatInfo(int index) { FloatInfo i = (FloatInfo)getItem(index); return i.value; }
/** * Reads the <code>class_index</code> field of the * <code>CONSTANT_Fieldref_info</code> structure * at the given index. */ public int getFieldrefClass(int index) { FieldrefInfo finfo = (FieldrefInfo)getItem(index); return finfo.classIndex; }
/** * Reads <code>CONSTANT_Integer_info</code> structure * at the given index. * * @return the value specified by this entry. */ public int getIntegerInfo(int index) { IntegerInfo i = (IntegerInfo)getItem(index); return i.value; }
/** * Reads the <code>bootstrap_method_attr_index</code> field of the * <code>CONSTANT_InvokeDynamic_info</code> structure * at the given index. * * @since 3.17 */ public int getInvokeDynamicBootstrap(int index) { InvokeDynamicInfo iv = (InvokeDynamicInfo)getItem(index); return iv.bootstrap; }
/** * Reads the <code>name_and_type_index</code> field of the * <code>CONSTANT_Fieldref_info</code> structure * at the given index. */ public int getFieldrefNameAndType(int index) { FieldrefInfo finfo = (FieldrefInfo)getItem(index); return finfo.nameAndTypeIndex; }
/** * Reads the <code>class_index</code> field of the * <code>CONSTANT_InterfaceMethodref_info</code> structure * at the given index. */ public int getInterfaceMethodrefClass(int index) { MemberrefInfo minfo = (MemberrefInfo)getItem(index); return minfo.classIndex; }
/** * Reads <code>CONSTANT_Long_info</code> structure * at the given index. * * @return the value specified by this entry. */ public long getLongInfo(int index) { LongInfo i = (LongInfo)getItem(index); return i.value; }
/** * Reads <code>CONSTANT_utf8_info</code> structure * at the given index. * * @return the string specified by this entry. */ public String getUtf8Info(int index) { Utf8Info utf = (Utf8Info)getItem(index); return utf.string; }
/** * Reads the <code>name_and_type_index</code> field of the * <code>CONSTANT_InvokeDynamic_info</code> structure * at the given index. * * @since 3.17 */ public int getInvokeDynamicNameAndType(int index) { InvokeDynamicInfo iv = (InvokeDynamicInfo)getItem(index); return iv.nameAndType; }
/** * Reads the <code>name_and_type_index</code> field of the * <code>CONSTANT_Methodref_info</code> structure * at the given index. */ public int getMethodrefNameAndType(int index) { MemberrefInfo minfo = (MemberrefInfo)getItem(index); return minfo.nameAndTypeIndex; }
/** * Reads <code>CONSTANT_Double_info</code> structure * at the given index. * * @return the value specified by this entry. */ public double getDoubleInfo(int index) { DoubleInfo i = (DoubleInfo)getItem(index); return i.value; }
/** * Reads the <code>class_index</code> field of the * <code>CONSTANT_Fieldref_info</code>, * <code>CONSTANT_Methodref_info</code>, * or <code>CONSTANT_Interfaceref_info</code>, * structure at the given index. * * @since 3.6 */ public int getMemberClass(int index) { MemberrefInfo minfo = (MemberrefInfo)getItem(index); return minfo.classIndex; }
/** * Reads the <code>name_index</code> field of the * <code>CONSTANT_NameAndType_info</code> structure * at the given index. */ public int getNameAndTypeName(int index) { NameAndTypeInfo ntinfo = (NameAndTypeInfo)getItem(index); return ntinfo.memberName; }
/** * Reads the <code>descriptor_index</code> field of the * <code>CONSTANT_MethodType_info</code> structure * at the given index. * * @since 3.17 */ public int getMethodTypeInfo(int index) { MethodTypeInfo mtinfo = (MethodTypeInfo)getItem(index); return mtinfo.descriptor; }
/** * Returns the <code>tag</code> field of the constant pool table * entry at the given index. * * @return either <code>CONST_Class</code>, <code>CONST_Fieldref</code>, * <code>CONST_Methodref</code>, or ... */ public int getTag(int index) { return getItem(index).getTag(); }
/** * Reads the <code>class_index</code> field of the * <code>CONSTANT_InterfaceMethodref_info</code> structure * at the given index. * * @return the name of the class at that <code>class_index</code>. */ public String getInterfaceMethodrefClassName(int index) { MemberrefInfo minfo = (MemberrefInfo)getItem(index); return getClassInfo(minfo.classIndex); }
/** * Reads <code>CONSTANT_String_info</code> structure * at the given index. * * @return the string specified by <code>string_index</code>. */ public String getStringInfo(int index) { StringInfo si = (StringInfo)getItem(index); return getUtf8Info(si.string); }
public int copy(ConstPool src, ConstPool dest, Map map) { return dest.addInvokeDynamicInfo(bootstrap, src.getItem(nameAndType).copy(src, dest, map)); }