harpoon.IR.Bytecode
Class OpField

java.lang.Object
  extended by harpoon.IR.Bytecode.Operand
      extended by harpoon.IR.Bytecode.OpField

public final class OpField
extends Operand

OpField represents a field reference operand of a java bytecode instruction. It is generated from a CONSTANT_Fieldref constant pool entry.

Version:
$Id: OpField.java,v 1.3 2002/02/25 21:04:17 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
ConstantFieldref

Field Summary
 
Fields inherited from class harpoon.IR.Bytecode.Operand
arrayFactory
 
Constructor Summary
OpField(Code parent, int constant_pool_index)
          Create an OpField from the CONSTANT_Fieldref at the given index in the constant pool.
 
Method Summary
 String toString()
          Return the canonical name of this field.
 HField value()
          Return the field referenced by this operand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpField

public OpField(Code parent,
               int constant_pool_index)
Create an OpField from the CONSTANT_Fieldref at the given index in the constant pool.

Method Detail

value

public HField value()
Return the field referenced by this operand.


toString

public String toString()
Return the canonical name of this field.

Specified by:
toString in class Operand
See Also:
HField.toString()