Class DoubleConstant


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

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

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

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

      • DoubleConstant

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

      • getValue

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

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