public final class CONSTANT_Class_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 fully qualified Java class name that has been
converted to the class file's internal form.
Modifier and Type | Field and Description |
---|---|
int |
m_name_index |
static byte |
TAG |
Modifier | Constructor and Description |
---|---|
|
CONSTANT_Class_info(int name_index) |
protected |
CONSTANT_Class_info(UDataInputStream bytes) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(ICONSTANTVisitor visitor,
java.lang.Object ctx) |
java.lang.String |
getName(ClassDef cls)
Returns the JVM class name within the constant pool context of 'cls'
class definition.
|
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 CONSTANT_Class_info(int name_index)
protected CONSTANT_Class_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)
cls
- class that contains this constantpublic 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