harpoon.IR.Bytecode
Class OpClass

java.lang.Object
  extended by harpoon.IR.Bytecode.Operand
      extended by 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

Field Summary
 
Fields inherited from class harpoon.IR.Bytecode.Operand
arrayFactory
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpClass

public OpClass(Code parent,
               int constant_pool_index)
Creates an OpClass from the CONSTANT_CLASS at the given index in the constant pool.

Method Detail

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