All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----harpoon.ClassFile.Raw.Constant.Constant | +----harpoon.ClassFile.Raw.Constant.ConstantFieldref
CONSTANT_Fieldref
structure represents a field.
class_index
item must be a valid
index into the constant_pool
table of the
parent
.
name_and_type_index
item must be a
valid index into the constant_pool
table of the
parent
.
public int class_index
class_index
item must be a valid
index into the constant_pool
table of the
parent
. The constant_pool
entry at
that index must be a CONSTANT_Class_info
structure
representing the class or interface type that contains the
declaration of the field.
The class_index
item of a
CONSTANT_Fieldref
must be a class type, not an
interface type.
public int name_and_type_index
name_and_type_index
item must be a
valid index into the constant_pool
table of the
parent
. The constant_pool
entry at
that index must be a CONSTANT_NameAndType_info
structure. This constant_pool
entry indicates the
name and descriptor of the field.
public ConstantFieldref(ClassFile parent, int class_index, int name_and_type_index)
public void write(ClassDataOutputStream out) throws IOException
public ConstantClass class_index()
public ConstantNameAndType name_and_type_index()
public String toString()
All Packages Class Hierarchy This Package Previous Next Index