public final class CONSTANT_NameAndType_info extends CONSTANT_info
The value of the name_index item 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.
The value of the descriptor_index item 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.
Modifier and Type | Field and Description |
---|---|
int |
m_descriptor_index |
int |
m_name_index |
static byte |
TAG |
Modifier | Constructor and Description |
---|---|
|
CONSTANT_NameAndType_info(int name_index,
int descriptor_index) |
protected |
CONSTANT_NameAndType_info(UDataInputStream bytes) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(ICONSTANTVisitor visitor,
java.lang.Object ctx) |
java.lang.String |
getDescriptor(ClassDef cls) |
java.lang.String |
getName(ClassDef cls) |
byte |
tag()
Returns the tag byte for this CONSTANT type [this data is
static class data].
|
java.lang.String |
toString() |
void |
writeInClassFormat(UDataOutputStream out) |
clone, new_CONSTANT_info, tagToString, width
public static final byte TAG
public int m_name_index
public int m_descriptor_index
public CONSTANT_NameAndType_info(int name_index, int descriptor_index)
protected CONSTANT_NameAndType_info(UDataInputStream bytes) throws java.io.IOException
java.io.IOException
public final byte tag()
CONSTANT_info
tag
in class CONSTANT_info
public java.lang.String getName(ClassDef cls)
public java.lang.String getDescriptor(ClassDef cls)
public java.lang.Object accept(ICONSTANTVisitor visitor, java.lang.Object ctx)
accept
in class CONSTANT_info
public java.lang.String toString()
toString
in class CONSTANT_info
public void writeInClassFormat(UDataOutputStream out) throws java.io.IOException
writeInClassFormat
in interface IClassFormatOutput
writeInClassFormat
in class CONSTANT_info
java.io.IOException