Package jminusminus
Class CLConstantStringInfo
java.lang.Object
jminusminus.CLCPInfo
jminusminus.CLConstantStringInfo
Representation of CONSTANT_String_info structure.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCLConstantStringInfo
(int stringIndex) Constructs a CLConstantStringInfo object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this CLCPInfo object is the same as other, and false otherwise.void
write
(CLOutputStream out) Writes the contents of this constant pool item to the specified output stream.
-
Field Details
-
stringIndex
public int stringIndexCONSTANT_String_info.string_index item.
-
-
Constructor Details
-
CLConstantStringInfo
public CLConstantStringInfo(int stringIndex) Constructs a CLConstantStringInfo object.- Parameters:
stringIndex
- CONSTANT_String_info.string_index item.
-
-
Method Details
-
write
Writes the contents of this constant pool item to the specified output stream.- Overrides:
write
in classCLCPInfo
- Parameters:
out
- output stream.- Throws:
IOException
- if an error occurs while writing.
-
equals
Return true if this CLCPInfo object is the same as other, and false otherwise.
-