org.jikesrvm.adaptive.database.callgraph
Class CallSite
java.lang.Object
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 |
method
private final RVMMethod method
- Caller method
bcIndex
private final int bcIndex
- bytecode index of callsite in caller method
CallSite
public CallSite(RVMMethod m,
int bci)
- Parameters:
m
- the RVMMethod containing the callsitebci
- the bytecode index of the callsite within m
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