org.jikesrvm.adaptive.util
Class UnResolvedCallSite

java.lang.Object
  extended by org.jikesrvm.adaptive.util.UnResolvedCallSite

public final class UnResolvedCallSite
extends Object

A unresolved call site is a pair: <MethodReference, bcIndex>.


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

Field Detail

methodRef

private final MethodReference methodRef
Caller method


bcIndex

private final int bcIndex
bytecode index of callsite in caller method

Constructor Detail

UnResolvedCallSite

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

getMethodRef

public MethodReference getMethodRef()
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 fales

hashCode

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