Class IntConstant


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

      Constructors 
      Constructor Description
      IntConstant​(Constant[] pool, int value)
      Creates an instance for the specified int value.
    • Constructor Detail

      • IntConstant

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

      • getValue

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

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