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
-
val
- The value of the
int
constant.
-
ConstantInteger(ClassFile, int)
- Constructor.
-
intValue()
- Returns the integer value of this constant.
-
toString()
- Create a human-readable representation of this constant.
-
value()
- Returns the value of this constant, wrapped as a
java.lang.Integer
.
-
write(ClassDataOutputStream)
- Write to a bytecode file.
val
public int val
- The value of the
int
constant.
ConstantInteger
public ConstantInteger(ClassFile parent,
int val)
- Constructor.
write
public void write(ClassDataOutputStream out) throws IOException
- Write to a bytecode file.
- Overrides:
- write in class Constant
intValue
public int intValue()
- Returns the integer value of this constant.
value
public Object value()
- Returns the value of this constant, wrapped as a
java.lang.Integer
.
- Overrides:
- value in class ConstantValue
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