harpoon.IR.Bytecode
Class OpMethod

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

public final class OpMethod
extends Operand

OpMethod represents a method reference operand of a java bytecode instruction. It is generated from a CONSTANT_Methodref or CONSTANT_InterfaceMethodref constant pool entry.

Version:
$Id: OpMethod.java,v 1.4 2002/09/19 20:12:24 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
ConstantMethodref, ConstantInterfaceMethodref

Field Summary
 
Fields inherited from class harpoon.IR.Bytecode.Operand
arrayFactory
 
Constructor Summary
OpMethod(Code parent, int constant_pool_index)
          Create an OpMethod from the CONSTANT_Methodref or CONSTANT_InterfaceMethodref at the given index in the constant pool.
 
Method Summary
 boolean isInterface()
          Indicates whether this operand references an interface method.
 String toString()
          Return the canonical name of the method referenced.
 HMethod value()
          Return the method referenced by this operand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpMethod

public OpMethod(Code parent,
                int constant_pool_index)
Create an OpMethod from the CONSTANT_Methodref or CONSTANT_InterfaceMethodref at the given index in the constant pool.

Method Detail

value

public HMethod value()
Return the method referenced by this operand.


isInterface

public boolean isInterface()
Indicates whether this operand references an interface method.


toString

public String toString()
Return the canonical name of the method referenced.

Specified by:
toString in class Operand