Class ReflectionCallerCalleeMapper

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

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

  • Constructor Details

    • ReflectionCallerCalleeMapper

      public ReflectionCallerCalleeMapper()
  • 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 callerParameterIndex)
      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:
      callerParameterIndex - the caller parameter
      Returns:
      the index of the parameter in the callee