Package soot.jimple.infoflow.callmappers
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
-
Field Summary
Fields inherited from interface soot.jimple.infoflow.callmappers.ICallerCalleeArgumentMapper
ALL_PARAMS, BASE_OBJECT, UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionVirtualEdgeTargetCallerCalleeMapper(soot.jimple.toolkits.callgraph.VirtualEdgesSummaries.InvocationVirtualEdgeTarget t, soot.jimple.toolkits.callgraph.VirtualEdgesSummaries.DirectTarget dt) -
Method Summary
Modifier and TypeMethodDescriptiondetermineVirtualEdgeMapping(InfoflowManager manager, soot.jimple.InvokeExpr ie, soot.SootMethod callee) intgetCalleeIndexOfCallerParameter(int callerParamIndex) Returns the index of the parameter in the callee corresponding to the caller parameterintgetCallerIndexOfCalleeParameter(int calleeParamIndex) Returns the index of the parameter in the caller corresponding to "calleeParamIndex"Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface soot.jimple.infoflow.callmappers.ICallerCalleeArgumentMapper
getCalleeValueOfCallerParameter, getCallerValueOfCalleeParameter, isReflectiveMapper
-
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:ICallerCalleeArgumentMapperReturns the index of the parameter in the caller corresponding to "calleeParamIndex"- Specified by:
getCallerIndexOfCalleeParameterin interfaceICallerCalleeArgumentMapper- 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:ICallerCalleeArgumentMapperReturns the index of the parameter in the callee corresponding to the caller parameter- Specified by:
getCalleeIndexOfCallerParameterin interfaceICallerCalleeArgumentMapper- 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)
-