Interface MutableCallGraph

All Superinterfaces:
CallGraph
All Known Implementing Classes:
GraphBasedCallGraph, OnFlyCallGraph

public interface MutableCallGraph extends CallGraph
This interface defines a mutable call graph. this means a call graph that can be modified after the creation.
  • Method Details

    • addMethod

      void addMethod(@Nonnull MethodSignature calledMethod)
      This method enables to add method that are nodes in the call graph.
      Parameters:
      calledMethod - the method that will be added to the call graph.
    • addCall

      void addCall(@Nonnull MethodSignature sourceMethod, @Nonnull MethodSignature targetMethod, @Nonnull InvokableStmt invokableStmt)
      This method enables to add calls that are edges in the call graph.
      Parameters:
      sourceMethod - this parameter defines the source node of the edge in the call graph.
      targetMethod - this paramter defines the target node of the edge in the call graph.
      invokableStmt - this paramter defines the invoke statement of the edge in the call graph.
    • addCall

      void addCall(@Nonnull CallGraph.Call call)
      This method enables to add calls that are edges in the call graph.
      Parameters:
      call - this parameter defines the call that is transformed to the edge in the call graph.