Package soot.jimple.infoflow.callmappers
Class ReflectionCallerCalleeMapper
java.lang.Object
soot.jimple.infoflow.callmappers.ReflectionCallerCalleeMapper
- All Implemented Interfaces:
ICallerCalleeArgumentMapper
Maps caller and callee parameters in a reflective method call
- Author:
- Marc Miltenberger
-
Field Summary
FieldsFields inherited from interface soot.jimple.infoflow.callmappers.ICallerCalleeArgumentMapper
ALL_PARAMS, BASE_OBJECT, UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCalleeIndexOfCallerParameter(int callerParameterIndex) 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
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ReflectionCallerCalleeMapper
public ReflectionCallerCalleeMapper()
-
-
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 callerParameterIndex) Description copied from interface:ICallerCalleeArgumentMapperReturns the index of the parameter in the callee corresponding to the caller parameter- Specified by:
getCalleeIndexOfCallerParameterin interfaceICallerCalleeArgumentMapper- Parameters:
callerParameterIndex- the caller parameter- Returns:
- the index of the parameter in the callee
-