class CLConstantUtf8Info extends CLCPInfo
Modifier and Type | Field and Description |
---|---|
byte[] |
b
CONSTANT_Utf8_info.bytes item.
|
Constructor and Description |
---|
CLConstantUtf8Info(byte[] b)
Construct a CLConstantUtf8Info object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
length()
Return CONSTANT_Utf8_info.length item.
|
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 CLConstantUtf8Info(byte[] b)
b
- a constant string value.public int length()
public void write(CLOutputStream out) throws IOException
CLCPInfo
write
in class CLCPInfo
out
- output stream.IOException
- if an error occurs while writing.public void writeToStdOut(PrettyPrinter p)
CLCPInfo
writeToStdOut
in class CLCPInfo
p
- for pretty printing with indentation.