harpoon.IR.Bytecode
Class OpField
java.lang.Object
harpoon.IR.Bytecode.Operand
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
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. |
OpField
public OpField(Code parent,
int constant_pool_index)
- Create an
OpField
from the CONSTANT_Fieldref
at the given index in the constant pool.
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()