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.
| 限定符和类型 | 字段和说明 |
|---|---|
int |
m_descriptor_index |
int |
m_name_index |
static byte |
TAG |
| 限定符 | 构造器和说明 |
|---|---|
|
CONSTANT_NameAndType_info(int name_index,
int descriptor_index) |
protected |
CONSTANT_NameAndType_info(UDataInputStream bytes) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
accept(ICONSTANTVisitor visitor,
Object ctx) |
String |
getDescriptor(ClassDef cls) |
String |
getName(ClassDef cls) |
byte |
tag()
Returns the tag byte for this CONSTANT type [this data is
static class data].
|
String |
toString() |
void |
writeInClassFormat(UDataOutputStream out) |
clone, new_CONSTANT_info, tagToString, widthpublic 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 IOException
IOExceptionpublic final byte tag()
CONSTANT_infotag 在类中 CONSTANT_infopublic Object accept(ICONSTANTVisitor visitor, Object ctx)
accept 在类中 CONSTANT_infopublic String toString()
toString 在类中 CONSTANT_infopublic void writeInClassFormat(UDataOutputStream out) throws IOException
writeInClassFormat 在接口中 IClassFormatOutputwriteInClassFormat 在类中 CONSTANT_infoIOExceptionCopyright © 2018. All rights reserved.