Package jminusminus
Class CLConstantNameAndTypeInfo
java.lang.Object
jminusminus.CLCPInfo
jminusminus.CLConstantNameAndTypeInfo
Representation of CONSTANT_NameAndType_info structure.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintCONSTANT_NameAndType_info.descriptor_index item.intCONSTANT_NameAndType_info.name_index item. -
Constructor Summary
ConstructorsConstructorDescriptionCLConstantNameAndTypeInfo(int nameIndex, int descriptorIndex) Constructs a CLConstantNameAndTypeInfo object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this CLCPInfo object is the same as other, and false otherwise.voidwrite(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:
writein 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.
-