FileDocCategorySizeDatePackage
CONSTANT_ref_info.javaAPI DocAndroid 1.5 API2805Wed May 06 22:41:16 BST 2009com.vladium.jcd.cls.constant

CONSTANT_ref_info

public abstract class CONSTANT_ref_info extends CONSTANT_info
Abstract base for all CONSTANT_XXXref_info structures. They all have a constant pool pointer to a {@link CONSTANT_Class_info} and {@link CONSTANT_NameAndType_info} entries.

The value of the class_index item must be a valid index into the constant pool table. The constant pool entry at that index must be a {@link CONSTANT_Class_info} structure representing the class or interface type that contains the declaration of the field or method.

The class_index item of a {@link CONSTANT_Fieldref_info} or a {@link CONSTANT_Methodref_info} structure must be a class type, not an interface type. The class_index item of a {@link CONSTANT_InterfaceMethodref_info} structure must be an interface type that declares the given method.

see
CONSTANT_Fieldref_info
see
CONSTANT_Methodref_info
see
CONSTANT_InterfaceMethodref_info
author
(C) 2001, Vlad Roubtsov

Fields Summary
public int
m_class_index
public int
m_name_and_type_index
Constructors Summary
protected CONSTANT_ref_info(com.vladium.jcd.lib.UDataInputStream bytes)

        m_class_index = bytes.readU2 ();
        m_name_and_type_index = bytes.readU2 ();
    
protected CONSTANT_ref_info(int class_index, int name_and_type_index)

        m_class_index = class_index;
        m_name_and_type_index = name_and_type_index;
    
Methods Summary
public voidwriteInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)

        super.writeInClassFormat (out);
        
        out.writeU2 (m_class_index);
        out.writeU2 (m_name_and_type_index);