harpoon.Analysis.MetaMethods
Class MetaAllCallers

java.lang.Object
  extended by harpoon.Analysis.MetaMethods.MetaAllCallers
All Implemented Interfaces:
Serializable

public class MetaAllCallers
extends Object
implements Serializable

MetaAllCallers is the dual of MetaCallGraph. It computes the callers (MetaMethods) of each meta-method from the program. Note that the bulk of the computation is done in MetaCallGraph, this class just inverts the edges of a precomputed graph.

Version:
$Id: MetaAllCallers.java,v 1.6 2005/08/17 23:40:52 salcianu Exp $
Author:
Alexandru SALCIANU <salcianu@retezat.lcs.mit.edu>
See Also:
Serialized Form

Constructor Summary
MetaAllCallers(MetaCallGraph mcg)
          Creates a MetaAllCallers.
 
Method Summary
 MetaMethod[] getCallers(MetaMethod mm_callee)
          Returns the callers of the meta method mm_callee.
 MetaMethod[] getTransCallers(MetaMethod mm_callee)
          Returns the meta-methods that transitively call the meta-method mm_callee.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaAllCallers

public MetaAllCallers(MetaCallGraph mcg)
Creates a MetaAllCallers. Receives as parameter the MetaCallGraph which computes the possible callees of each meta-method.

Method Detail

getCallers

public MetaMethod[] getCallers(MetaMethod mm_callee)
Returns the callers of the meta method mm_callee. The returned set is a set of MetaMethods.


getTransCallers

public MetaMethod[] getTransCallers(MetaMethod mm_callee)
Returns the meta-methods that transitively call the meta-method mm_callee. Simply the transitive closure of getCallers.