dk.brics.string.java
Class AbstractDispatchClassHierarchy

java.lang.Object
  extended by dk.brics.string.java.AbstractDispatchClassHierarchy
All Implemented Interfaces:
AbstractDispatchStrategy

public class AbstractDispatchClassHierarchy
extends Object
implements AbstractDispatchStrategy

Finds the possible targets of an invocation using the class hierarchy of the application.


Constructor Summary
AbstractDispatchClassHierarchy(Hierarchy hierarchy)
           
 
Method Summary
 List<SootMethod> getTargetsOf(InstanceInvokeExpr expr)
          Returns the list of methods that might be invoked by the specified invocation statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDispatchClassHierarchy

public AbstractDispatchClassHierarchy(Hierarchy hierarchy)
Method Detail

getTargetsOf

public List<SootMethod> getTargetsOf(InstanceInvokeExpr expr)
Description copied from interface: AbstractDispatchStrategy
Returns the list of methods that might be invoked by the specified invocation statement.

Specified by:
getTargetsOf in interface AbstractDispatchStrategy
Parameters:
expr - an invocation statement.
Returns:
a read-only list of methods.


Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.