harpoon.Analysis.Quads
Interface CallGraph

All Superinterfaces:
CallGraph
All Known Implementing Classes:
CachingCallGraph, CallGraphImpl, SmartCallGraph

public interface CallGraph
extends CallGraph

CallGraph is a general interface that should be implemented by a call graph.

Version:
$Id: CallGraph.java,v 1.2 2002/02/25 20:59:22 cananian Exp $
Author:
Alexandru SALCIANU <salcianu@retezat.lcs.mit.edu>

Method Summary
 Set callableMethods()
          Returns the set of all the methods that can be called in the execution of the program.
 HMethod[] calls(HMethod hm, CALL cs)
          Returns an array containing all possible methods called by method m at the call site cs.
 CALL[] getCallSites(HMethod hm)
          Returns a list of all the CALLs quads in the code of hm.
 
Methods inherited from interface harpoon.Analysis.CallGraph
calls
 

Method Detail

calls

public HMethod[] calls(HMethod hm,
                       CALL cs)
Returns an array containing all possible methods called by method m at the call site cs. If there is no known callee for the call site cs, or if cs doesn't belong to the code of hm, return an array of length 0.


getCallSites

public CALL[] getCallSites(HMethod hm)
Returns a list of all the CALLs quads in the code of hm.


callableMethods

public Set callableMethods()
Returns the set of all the methods that can be called in the execution of the program.