All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----harpoon.ClassFile.Raw.Constant.Constant | +----harpoon.ClassFile.Raw.Constant.ConstantNameAndType
CONSTANT_NameAndType_info
structure is used to
represent a field or method, without indicating which class or
interface type it belongs to.
descriptor_index
must be a valid
index into the constant_pool
table.
name_index
must be a valid index
into the constant_pool
table.
public int name_index
name_index
must be a valid index
into the constant_pool
table. The
constant_pool
entry at that index must be a
CONSTANT_Utf8_info
structure representing a valid
Java field name or method name stored as a simple (not fully
qualified) name, that is, as a Java identifier.
public int descriptor_index
descriptor_index
must be a valid
index into the constant_pool
table. The
constant_pool
entry at that index must be a
CONSTANT_Utf8_info
structure representing a valid
Java field descriptor or method descriptor.
public ConstantNameAndType(ClassFile parent, int name_index, int descriptor_index)
public void write(ClassDataOutputStream out) throws IOException
public ConstantUtf8 name_index()
public ConstantUtf8 descriptor_index()
public String name()
public String descriptor()
public String toString()
All Packages Class Hierarchy This Package Previous Next Index