edu.uci.eecs.doc.cascade.controlflow
Class MethodInvocation

java.lang.Object
  extended by edu.uci.eecs.doc.cascade.controlflow.MethodInvocation

public class MethodInvocation
extends Object

A container for information about a method invocation.

Author:
Trevor Harmon

Constructor Summary
MethodInvocation(Method method, Field invokingField, InstructionHandle invokeInstruction)
          Creates a new MethodInvocation object.
 
Method Summary
 InstructionHandle getInvokeInstruction()
          Returns a handle to the instruction that invokes this method.
 Field getInvokingField()
          Returns the invoking field, if applicable.
 Method getMethod()
          Returns the invoked method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvocation

public MethodInvocation(Method method,
                        Field invokingField,
                        InstructionHandle invokeInstruction)
Creates a new MethodInvocation object.

Parameters:
method - the method that is invoked
invokingField - the field used to invoke the method (e.g., someField.someMethod(...)), or null if a field is not used for the invocation
invokeInstruction - a handle to the instruction that invokes this method (instruction must be of type InvokeInstruction)
Method Detail

getMethod

public Method getMethod()
Returns the invoked method.

Returns:
a Java method handle

getInvokingField

public Field getInvokingField()
Returns the invoking field, if applicable.

Returns:
a Java field handle, or null if a field is not used to invoke the method

getInvokeInstruction

public InstructionHandle getInvokeInstruction()
Returns a handle to the instruction that invokes this method.

Returns:
a BCEL instruction handle