Package jminusminus

Class CLConstantNameAndTypeInfo

java.lang.Object
jminusminus.CLCPInfo
jminusminus.CLConstantNameAndTypeInfo

class CLConstantNameAndTypeInfo extends CLCPInfo
Representation of CONSTANT_NameAndType_info structure.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    CONSTANT_NameAndType_info.descriptor_index item.
    int
    CONSTANT_NameAndType_info.name_index item.

    Fields inherited from class jminusminus.CLCPInfo

    cpIndex, tag
  • Constructor Summary

    Constructors
    Constructor
    Description
    CLConstantNameAndTypeInfo(int nameIndex, int descriptorIndex)
    Constructs a CLConstantNameAndTypeInfo object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
    Return true if this CLCPInfo object is the same as other, and false otherwise.
    void
    Writes the contents of this constant pool item to the specified output stream.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • nameIndex

      public int nameIndex
      CONSTANT_NameAndType_info.name_index item.
    • descriptorIndex

      public int descriptorIndex
      CONSTANT_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

      public void write(CLOutputStream out) throws IOException
      Writes the contents of this constant pool item to the specified output stream.
      Overrides:
      write in class CLCPInfo
      Parameters:
      out - output stream.
      Throws:
      IOException - if an error occurs while writing.
    • equals

      public boolean equals(Object other)
      Return true if this CLCPInfo object is the same as other, and false otherwise.
      Overrides:
      equals in class CLCPInfo
      Parameters:
      other - the reference CLCPInfo object with which to compare.
      Returns:
      true if this CLCPInfo object is the same as other, and false otherwise.