Package jminusminus
Class CLConstantNameAndTypeInfo
java.lang.Object
jminusminus.CLCPInfo
jminusminus.CLConstantNameAndTypeInfo
Representation of CONSTANT_NameAndType_info structure.
-
Field Summary
Modifier and TypeFieldDescriptionint
CONSTANT_NameAndType_info.descriptor_index item.int
CONSTANT_NameAndType_info.name_index item. -
Constructor Summary
ConstructorDescriptionCLConstantNameAndTypeInfo
(int nameIndex, int descriptorIndex) Constructs a CLConstantNameAndTypeInfo 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
-
nameIndex
public int nameIndexCONSTANT_NameAndType_info.name_index item. -
descriptorIndex
public int descriptorIndexCONSTANT_NameAndType_info.descriptor_index item.
-
-
Constructor Details
-
CLConstantNameAndTypeInfo
public CLConstantNameAndTypeInfo(int nameIndex, int descriptorIndex) Constructs a CLConstantNameAndTypeInfo object.- Parameters:
nameIndex
- CONSTANT_NameAndType_info.name_index item.descriptorIndex
- CONSTANT_NameAndType_info.descriptor_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.
-