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

Variable Index

 o val
The value of the long constant.

Constructor Index

 o ConstantLong(ClassFile, long)
Constructor.

Method Index

 o longValue()
Returns the 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.Long.
 o write(ClassDataOutputStream)
Write to a bytecode file.

Variables

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

Constructors

 o ConstantLong
 public ConstantLong(ClassFile parent,
                     long val)
Constructor.

Methods

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

Overrides:
write in class Constant
 o longValue
 public long longValue()
Returns the value of this constant.

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

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