Package jminusminus

Class CLCPInfo

java.lang.Object
jminusminus.CLCPInfo
Direct Known Subclasses:
CLConstantClassInfo, CLConstantDoubleInfo, CLConstantFloatInfo, CLConstantIntegerInfo, CLConstantLongInfo, CLConstantMemberRefInfo, CLConstantNameAndTypeInfo, CLConstantStringInfo, CLConstantUtf8Info

abstract class CLCPInfo extends Object
Representation of cp_info structure.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Index of this object in the constant pool.
    short
    cp_info.tag item.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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

    • cpIndex

      public int cpIndex
      Index of this object in the constant pool.
    • tag

      public short tag
      cp_info.tag item.
  • Constructor Details

    • CLCPInfo

      CLCPInfo()
  • Method Details

    • write

      public void write(CLOutputStream out) throws IOException
      Writes the contents of this constant pool item to the specified output stream.
      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 Object
      Parameters:
      other - the reference CLCPInfo object with which to compare.
      Returns:
      true if this CLCPInfo object is the same as other, and false otherwise.