Class VirtualEdgeTargetCallerCalleeMapper

java.lang.Object
soot.jimple.infoflow.callmappers.VirtualEdgeTargetCallerCalleeMapper
All Implemented Interfaces:
ICallerCalleeArgumentMapper

public class VirtualEdgeTargetCallerCalleeMapper extends Object implements ICallerCalleeArgumentMapper
Maps caller and callee parameters in a reflective method call
Author:
Marc Miltenberger
  • Constructor Details

    • VirtualEdgeTargetCallerCalleeMapper

      public VirtualEdgeTargetCallerCalleeMapper(soot.jimple.toolkits.callgraph.VirtualEdgesSummaries.InvocationVirtualEdgeTarget t, soot.jimple.toolkits.callgraph.VirtualEdgesSummaries.DirectTarget dt)
  • Method Details

    • getCallerIndexOfCalleeParameter

      public int getCallerIndexOfCalleeParameter(int calleeParamIndex)
      Description copied from interface: ICallerCalleeArgumentMapper
      Returns the index of the parameter in the caller corresponding to "calleeParamIndex"
      Specified by:
      getCallerIndexOfCalleeParameter in interface ICallerCalleeArgumentMapper
      Parameters:
      calleeParamIndex - the desired parameter index
      Returns:
      the index of the parameter in the caller corresponding to calleeParamIndex
    • getCalleeIndexOfCallerParameter

      public int getCalleeIndexOfCallerParameter(int callerParamIndex)
      Description copied from interface: ICallerCalleeArgumentMapper
      Returns the index of the parameter in the callee corresponding to the caller parameter
      Specified by:
      getCalleeIndexOfCallerParameter in interface ICallerCalleeArgumentMapper
      Parameters:
      callerParamIndex - the caller parameter
      Returns:
      the index of the parameter in the callee
    • determineVirtualEdgeMapping

      public static VirtualEdgeTargetCallerCalleeMapper determineVirtualEdgeMapping(InfoflowManager manager, soot.jimple.InvokeExpr ie, soot.SootMethod callee)