Class CstFloat

All Implemented Interfaces:
TypeBearer, ToHuman, Comparable<Constant>

public final class CstFloat extends CstLiteral32
Constants of type CONSTANT_Float_info.
  • Field Details

    • VALUE_0

      public static final CstFloat VALUE_0
      non-null; instance representing 0
    • VALUE_1

      public static final CstFloat VALUE_1
      non-null; instance representing 1
    • VALUE_2

      public static final CstFloat VALUE_2
      non-null; instance representing 2
  • Method Details

    • make

      public static CstFloat make(int bits)
      Makes an instance for the given value. This may (but does not necessarily) return an already-allocated instance.
      Parameters:
      bits - the float value as int bits
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public Type getType()
      Gets the type associated with this instance.
      Returns:
      non-null; the type
    • typeName

      public String typeName()
      Returns the human name for the particular type of constant this instance is.
      Specified by:
      typeName in class Constant
      Returns:
      non-null; the name
    • toHuman

      public String toHuman()
      Return the "human" string form of this instance. This is generally less "debuggy" than toString().
      Returns:
      non-null; the human string form
    • getValue

      public float getValue()
      Gets the float value.
      Returns:
      the value