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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Indicates that all parameters are possible.
    static final int
     
    static final int
    Indicates that we have no information about a mapping.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getCalleeIndexOfCallerParameter(int callerParamIndex)
    Returns the index of the parameter in the callee corresponding to the caller parameter
    default soot.Value
    getCalleeValueOfCallerParameter(int callerParamIndex, soot.Body body)
    Returns the index of the parameter in the callee corresponding to the caller parameter
    int
    getCallerIndexOfCalleeParameter(int calleeParamIndex)
    Returns the index of the parameter in the caller corresponding to "calleeParamIndex"
    default soot.Value
    getCallerValueOfCalleeParameter(soot.jimple.InvokeExpr expr, int calleeParamIndex)
    Uses getMappedIndexOfCallerParameter to determine the actual value
    default boolean
     
  • Field Details

    • BASE_OBJECT

      static final int BASE_OBJECT
      See Also:
    • ALL_PARAMS

      static final int ALL_PARAMS
      Indicates that all parameters are possible.
      See Also:
    • UNKNOWN

      static final int UNKNOWN
      Indicates 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 caller
      calleeParamIndex - 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 parameter
      body - the body of the callee
      Returns:
      the mapped value of the parameter in the callee
    • isReflectiveMapper

      default boolean isReflectiveMapper()