All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.Bytecode.OpMethod

java.lang.Object
   |
   +----harpoon.IR.Bytecode.Operand
           |
           +----harpoon.IR.Bytecode.OpMethod

public 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.2 1998/10/11 03:01:16 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
ConstantMethodref, ConstantInterfaceMethodref

Constructor Index

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

Method Index

 o isInterface()
Indicates whether this operand references an interface method.
 o toString()
Return the canonical name of the method referenced.
 o value()
Return the method referenced by this operand.

Constructors

 o 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.

Methods

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

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

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

Overrides:
toString in class Operand

All Packages  Class Hierarchy  This Package  Previous  Next  Index