Package soot.jimple.infoflow.callmappers
Interface ICallerCalleeArgumentMapper
- All Known Implementing Classes:
IdentityCallerCalleeMapper,ReflectionCallerCalleeMapper,UnknownCallerCalleeMapper,VirtualEdgeTargetCallerCalleeMapper
public interface ICallerCalleeArgumentMapper
Maps caller to callee arguments and vice versa.
There are special mappers e.g. for reflective calls and virtual edges
- Author:
- Marc Miltenberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that all parameters are possible.static final intstatic final intIndicates that we have no information about a mapping. -
Method Summary
Modifier and TypeMethodDescriptionintgetCalleeIndexOfCallerParameter(int callerParamIndex) Returns the index of the parameter in the callee corresponding to the caller parameterdefault soot.ValuegetCalleeValueOfCallerParameter(int callerParamIndex, soot.Body body) 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"default soot.ValuegetCallerValueOfCalleeParameter(soot.jimple.InvokeExpr expr, int calleeParamIndex) Uses getMappedIndexOfCallerParameter to determine the actual valuedefault boolean
-
Field Details
-
BASE_OBJECT
static final int BASE_OBJECT- See Also:
-
ALL_PARAMS
static final int ALL_PARAMSIndicates that all parameters are possible.- See Also:
-
UNKNOWN
static final int UNKNOWNIndicates that we have no information about a mapping.- See Also:
-
-
Method Details
-
getCallerIndexOfCalleeParameter
int getCallerIndexOfCalleeParameter(int calleeParamIndex) Returns the index of the parameter in the caller corresponding to "calleeParamIndex"- Parameters:
calleeParamIndex- the desired parameter index- Returns:
- the index of the parameter in the caller corresponding to calleeParamIndex
-
getCallerValueOfCalleeParameter
default soot.Value getCallerValueOfCalleeParameter(soot.jimple.InvokeExpr expr, int calleeParamIndex) Uses getMappedIndexOfCallerParameter to determine the actual value- Parameters:
expr- the invoke expression of the callercalleeParamIndex- the desired parameter index- Returns:
- the mapped value in the caller invoke expr
-
getCalleeIndexOfCallerParameter
int getCalleeIndexOfCallerParameter(int callerParamIndex) Returns the index of the parameter in the callee corresponding to the caller parameter- Parameters:
callerParamIndex- the caller parameter- Returns:
- the index of the parameter in the callee
-
getCalleeValueOfCallerParameter
default soot.Value getCalleeValueOfCallerParameter(int callerParamIndex, soot.Body body) Returns the index of the parameter in the callee corresponding to the caller parameter- Parameters:
callerParamIndex- the caller parameterbody- the body of the callee- Returns:
- the mapped value of the parameter in the callee
-
isReflectiveMapper
default boolean isReflectiveMapper()
-