Class LongConstant


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

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

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

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

      • LongConstant

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

      • getValue

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

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