class CLConstantNameAndTypeInfo extends CLCPInfo
| Modifier and Type | Field and Description |
|---|---|
int |
descriptorIndex
CONSTANT_NameAndType_info.descriptor_index item.
|
int |
nameIndex
CONSTANT_NameAndType_info.name_index item.
|
| Constructor and Description |
|---|
CLConstantNameAndTypeInfo(int nameIndex,
int descriptorIndex)
Construct a CLConstantNameAndTypeInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
write(CLOutputStream out)
Write the contents of this constant pool item to the specified output
stream.
|
void |
writeToStdOut(PrettyPrinter p)
Write the content of this object to STDOUT in a format similar to that of
javap.
|
public int nameIndex
public int descriptorIndex
public CLConstantNameAndTypeInfo(int nameIndex,
int descriptorIndex)
nameIndex - CONSTANT_NameAndType_info.name_index item.descriptorIndex - CONSTANT_NameAndType_info.descriptor_index item.public void write(CLOutputStream out) throws IOException
CLCPInfowrite in class CLCPInfoout - output stream.IOException - if an error occurs while writing.public void writeToStdOut(PrettyPrinter p)
CLCPInfowriteToStdOut in class CLCPInfop - for pretty printing with indentation.