classycle.classfile
Class IntConstant

java.lang.Object
  extended by classycle.classfile.Constant
      extended by classycle.classfile.IntConstant

public class IntConstant
extends Constant

Constant representing a int value.

Author:
Franz-Josef Elmer

Constructor Summary
IntConstant(Constant[] pool, int value)
          Creates an instance for the specified int value.
 
Method Summary
 int getValue()
          Returns the wrapped int value.
 java.lang.String toString()
          Returns the constant type and the int value.
 
Methods inherited from class classycle.classfile.Constant
extractConstantPool, getConstant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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