Package jminusminus

Class CLConstantLongInfo

java.lang.Object
jminusminus.CLCPInfo
jminusminus.CLConstantLongInfo

class CLConstantLongInfo extends CLCPInfo
Representation of CONSTANT_Long_info structure.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    The long number.

    Fields inherited from class jminusminus.CLCPInfo

    cpIndex, tag
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a CLConstantLongInfo 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.
    short[]
    Returns CONSTANT_Long_info.high_bytes item.
    short[]
    Returns CONSTANT_Long_info.low_bytes item.
    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

    • l

      public long l
      The long number.
  • Constructor Details

    • CLConstantLongInfo

      public CLConstantLongInfo(long l)
      Constructs a CLConstantLongInfo object.
      Parameters:
      l - the long number.
  • Method Details

    • lowBytes

      public short[] lowBytes()
      Returns CONSTANT_Long_info.low_bytes item.
      Returns:
      CONSTANT_Long_info.low_bytes item.
    • highBytes

      public short[] highBytes()
      Returns CONSTANT_Long_info.high_bytes item.
      Returns:
      CONSTANT_Long_info.high_bytes item.
    • 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.