Skip to content

Commit b1c46a9

Browse files
committed
added default method for convenience
1 parent b207b3d commit b1c46a9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

soot-infoflow-summaries/src/soot/jimple/infoflow/methodSummary/data/provider/IMethodSummaryProvider.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.util.Set;
44

55
import soot.SootClass;
6+
import soot.SootMethod;
67
import soot.jimple.infoflow.methodSummary.data.summary.ClassMethodSummaries;
78
import soot.jimple.infoflow.methodSummary.data.summary.ClassSummaries;
89

@@ -70,6 +71,17 @@ public default ClassMethodSummaries getMethodFlows(SootClass sootClass, String m
7071
*/
7172
public ClassMethodSummaries getMethodFlows(String className, String methodSignature);
7273

74+
/**
75+
* Gets the data flows inside the given method immediately for the class in
76+
* which it is defined.
77+
*
78+
* @param method The method for which to get the summaries
79+
* @return The flow summaries for the given method
80+
*/
81+
public default ClassMethodSummaries getMethodFlows(SootMethod method) {
82+
return getMethodFlows(method.getDeclaringClass(), method.getSubSignature());
83+
}
84+
7385
/**
7486
* Gets all flows for the given method signature in the given set of classes
7587
*

0 commit comments

Comments
 (0)