Package jminusminus

Class CLConstantFloatInfo

java.lang.Object
jminusminus.CLCPInfo
jminusminus.CLConstantFloatInfo

class CLConstantFloatInfo extends CLCPInfo
Representation of CONSTANT_Float_info structure.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    The floating-point number.

    Fields inherited from class jminusminus.CLCPInfo

    cpIndex, tag
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a CLConstantFloatInfo object.
  • Method Summary

    Modifier and Type
    Method
    Description
    short[]
    Returns CONSTANT_Float_info.bytes item.
    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

    • f

      public float f
      The floating-point number.
  • Constructor Details

    • CLConstantFloatInfo

      public CLConstantFloatInfo(float f)
      Constructs a CLConstantFloatInfo object.
      Parameters:
      f - the floating-point number.
  • Method Details

    • bytes

      public short[] bytes()
      Returns CONSTANT_Float_info.bytes item.
      Returns:
      CONSTANT_Float_info.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.