All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Constant.ConstantInteger

java.lang.Object
   |
   +----harpoon.ClassFile.Raw.Constant.Constant
           |
           +----harpoon.ClassFile.Raw.Constant.ConstantValue
                   |
                   +----harpoon.ClassFile.Raw.Constant.ConstantInteger

public class ConstantInteger
extends ConstantValue
The CONSTANT_Integer_info structure represents four-byte integer numeric constants.

Version:
$Id: ConstantInteger.java,v 1.13 1998/10/11 03:01:14 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
Constant, ConstantFloat

Variable Index

 o val
The value of the int constant.

Constructor Index

 o ConstantInteger(ClassFile, int)
Constructor.

Method Index

 o intValue()
Returns the integer value of this constant.
 o toString()
Create a human-readable representation of this constant.
 o value()
Returns the value of this constant, wrapped as a java.lang.Integer.
 o write(ClassDataOutputStream)
Write to a bytecode file.

Variables

 o val
 public int val
The value of the int constant.

Constructors

 o ConstantInteger
 public ConstantInteger(ClassFile parent,
                        int val)
Constructor.

Methods

 o write
 public void write(ClassDataOutputStream out) throws IOException
Write to a bytecode file.

Overrides:
write in class Constant
 o intValue
 public int intValue()
Returns the integer value of this constant.

 o value
 public Object value()
Returns the value of this constant, wrapped as a java.lang.Integer.

Overrides:
value in class ConstantValue
 o toString
 public String toString()
Create a human-readable representation of this constant.

Overrides:
toString in class Constant

All Packages  Class Hierarchy  This Package  Previous  Next  Index