Package sootup.callgraph
Interface MutableCallGraph
- All Superinterfaces:
CallGraph
- All Known Implementing Classes:
GraphBasedCallGraph
,OnFlyCallGraph
This interface defines a mutable call graph. this means a call graph that can be modified after
the creation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface sootup.callgraph.CallGraph
CallGraph.Call
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCall
(CallGraph.Call call) This method enables to add calls that are edges in the call graph.void
addCall
(MethodSignature sourceMethod, MethodSignature targetMethod, InvokableStmt invokableStmt) This method enables to add calls that are edges in the call graph.void
addMethod
(MethodSignature calledMethod) This method enables to add method that are nodes in the call graph.Methods inherited from interface sootup.callgraph.CallGraph
callCount, callsFrom, callSourcesTo, callsTo, callTargetsFrom, containsCall, containsCall, containsMethod, copy, diff, exportAsDot, getEntryMethods, getMethodSignatures
-
Method Details
-
addMethod
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
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.
-