harpoon.IR.Bytecode
Class OpClass
java.lang.Object
harpoon.IR.Bytecode.Operand
harpoon.IR.Bytecode.OpClass
public final class OpClass
- extends Operand
OpClass
represents a class reference operand of a
java bytecode instruction. It is generated from a
CONSTANT_Class
constant pool entry.
- Version:
- $Id: OpClass.java,v 1.3 2002/02/25 21:04:17 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
ConstantClass
Constructor Summary |
OpClass(Code parent,
int constant_pool_index)
Creates an OpClass from the CONSTANT_CLASS
at the given index in the constant pool. |
Method Summary |
String |
toString()
Return a human-readable string given the value of this object. |
HClass |
value()
Return the class referenced. |
OpClass
public OpClass(Code parent,
int constant_pool_index)
- Creates an
OpClass
from the CONSTANT_CLASS
at the given index in the constant pool.
value
public HClass value()
- Return the class referenced.
toString
public String toString()
- Return a human-readable string given the value of this object.
- Specified by:
toString
in class Operand