Package jminusminus
Class CLConstantMemberRefInfo
java.lang.Object
jminusminus.CLCPInfo
jminusminus.CLConstantMemberRefInfo
- Direct Known Subclasses:
CLConstantFieldRefInfo
,CLConstantInterfaceMethodRefInfo
,CLConstantMethodRefInfo
Abstract super class of CONSTANT_Fieldref_info, CONSTANT_Methodref_info,
CONSTANT_InterfaceMethodref_info structures.
-
Field Summary
Modifier and TypeFieldDescriptionint
CONSTANT_Memberref_info.class_index item.int
CONSTANT_Memberref_info.name_and_type_index item. -
Constructor Summary
ModifierConstructorDescriptionprotected
CLConstantMemberRefInfo
(int classIndex, int nameAndTypeIndex, short tag) Constructs a CLConstantMemberRefInfo 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
-
classIndex
public int classIndexCONSTANT_Memberref_info.class_index item. -
nameAndTypeIndex
public int nameAndTypeIndexCONSTANT_Memberref_info.name_and_type_index item.
-
-
Constructor Details
-
CLConstantMemberRefInfo
protected CLConstantMemberRefInfo(int classIndex, int nameAndTypeIndex, short tag) Constructs a CLConstantMemberRefInfo object.- Parameters:
classIndex
- CONSTANT_Memberref_info.class_index item.nameAndTypeIndex
- CONSTANT_Memberref_info.name_and_type_index item.tag
- CONSTANT_Memberref_info.tag 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.
-