Class CallbackDefinition

java.lang.Object
soot.jimple.infoflow.callbacks.CallbackDefinition

public class CallbackDefinition extends Object
A base class for callbacks.
Author:
Steven Arzt, Marc Miltenberger
  • Field Details

    • targetMethod

      protected final soot.SootMethod targetMethod
    • parentMethod

      protected final soot.SootMethod parentMethod
  • Constructor Details

    • CallbackDefinition

      public CallbackDefinition(soot.SootMethod targetMethod, soot.SootMethod parentMethod)
      Creates a new instance of the CallbackDefinition class
      Parameters:
      targetMethod - The callback method
      parentMethod - The parent method in the Android framework, e.g., in the callback interface method
  • Method Details

    • getTargetMethod

      public soot.SootMethod getTargetMethod()
      Gets the callback method represented by this data object
      Returns:
      The callback method represented by this data object
    • getParentMethod

      public soot.SootMethod getParentMethod()
      Gets the parent method in the Android framework that causes the target method to be a callback. The parent is usually the method in the framework's callback interface.
      Returns:
      The parent method in the Android framework
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object