All Packages Class Hierarchy This Package Previous Next Index
Class harpoon.ClassFile.Raw.Constant.ConstantLong
java.lang.Object
|
+----harpoon.ClassFile.Raw.Constant.Constant
|
+----harpoon.ClassFile.Raw.Constant.ConstantValue
|
+----harpoon.ClassFile.Raw.Constant.ConstantLong
- public class ConstantLong
- extends ConstantValue
The CONSTANT_Long_info
structure represents eight-byte
integer numeric constants.
- Version:
- $Id: ConstantLong.java,v 1.13 1998/10/11 03:01:15 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
- Constant, ConstantDouble
-
val
- The value of the
long
constant.
-
ConstantLong(ClassFile, long)
- Constructor.
-
longValue()
- Returns the 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.Long
.
-
write(ClassDataOutputStream)
- Write to a bytecode file.
val
public long val
- The value of the
long
constant.
ConstantLong
public ConstantLong(ClassFile parent,
long val)
- Constructor.
write
public void write(ClassDataOutputStream out) throws IOException
- Write to a bytecode file.
- Overrides:
- write in class Constant
longValue
public long longValue()
- Returns the value of this constant.
value
public Object value()
- Returns the value of this constant, wrapped as a
java.lang.Long
.
- 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