org.jikesrvm.adaptive.database.callgraph
Class CallSite

java.lang.Object
  extended by org.jikesrvm.adaptive.database.callgraph.CallSite

public final class CallSite
extends Object

A call site is a pair: <RVMMethod, bcIndex>


Field Summary
private  int bcIndex
          bytecode index of callsite in caller method
private  RVMMethod method
          Caller method
 
Constructor Summary
CallSite(RVMMethod m, int bci)
           
 
Method Summary
 boolean equals(Object obj)
          Determine if two call sites are the same.
 int getBytecodeIndex()
           
 RVMMethod getMethod()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

method

private final RVMMethod method
Caller method


bcIndex

private final int bcIndex
bytecode index of callsite in caller method

Constructor Detail

CallSite

public CallSite(RVMMethod m,
                int bci)
Parameters:
m - the RVMMethod containing the callsite
bci - the bytecode index of the callsite within m
Method Detail

getMethod

public RVMMethod getMethod()
Returns:
method containing the callsite

getBytecodeIndex

public int getBytecodeIndex()
Returns:
call site's bytecode index in its method

toString

public String toString()
Overrides:
toString in class Object
Returns:
string representation of call site

equals

public boolean equals(Object obj)
Determine if two call sites are the same. Exact match: no wild cards.

Overrides:
equals in class Object
Parameters:
obj - call site to compare to
Returns:
true if call sites are the same; otherwise, return false

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
hash code