harpoon.IR.RawClass
Class ConstantValue

java.lang.Object
  extended by harpoon.IR.RawClass.Constant
      extended by harpoon.IR.RawClass.ConstantValue
Direct Known Subclasses:
ConstantClass, ConstantDouble, ConstantFloat, ConstantInteger, ConstantLong, ConstantString

public abstract class ConstantValue
extends Constant

The ConstantValue interface provides a standard way for constants to return a wrapped version of their values. It is intended for CONSTANT_Double, CONSTANT_Float, CONSTANT_Integer, CONSTANT_Long, and CONSTANT_String. It is not applicable to CONSTANT_Class and the like, which do not have an obvious object wrapper.

Version:
$Id: ConstantValue.java,v 1.2 2002/02/25 21:05:27 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
ConstantDouble, ConstantFloat, ConstantInteger, ConstantLong, ConstantString

Field Summary
 
Fields inherited from class harpoon.IR.RawClass.Constant
parent
 
Constructor Summary
protected ConstantValue(ClassFile parent)
           
 
Method Summary
abstract  Object value()
           
 
Methods inherited from class harpoon.IR.RawClass.Constant
entrySize, print, read, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantValue

protected ConstantValue(ClassFile parent)
Method Detail

value

public abstract Object value()