Algorithm 5.2 Call-Resolution-Of-CHA
Input: Call site .
Output: Possible target methods of resolved by CHA.
1:procedure Resolve()
2:
3: method signature at
4:if is a static call then
5:
6:end if
7:if is a special call then
8: class type of
9: Dispatch()
10:end if
11:if is a virtual call then
12: declared type of receiver variable at
13:for each that is a subclass of or itself do
14:add Dispatch() to
15:end for
16:end if
17:return
18:end procedure