Class FloatConstant


  • public class FloatConstant
    extends Constant
    Constant representing a float value.
    Author:
    Franz-Josef Elmer
    • Constructor Summary

      Constructors 
      Constructor Description
      FloatConstant​(Constant[] pool, float value)
      Creates an instance for the specified float value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getValue()
      Returns the wrapped float value.
      java.lang.String toString()
      Returns the constant type and the float value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FloatConstant

        public FloatConstant​(Constant[] pool,
                             float value)
        Creates an instance for the specified float value.
    • Method Detail

      • getValue

        public float getValue()
        Returns the wrapped float value.
      • toString

        public java.lang.String toString()
        Returns the constant type and the float value.
        Overrides:
        toString in class java.lang.Object