MCPcopy Create free account
hub / github.com/LFYSec/MScan / AbstractICFG

Class AbstractICFG

src/main/java/pascal/taie/analysis/graph/icfg/AbstractICFG.java:30–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28import java.util.stream.Stream;
29
30abstract class AbstractICFG<Method, Node> implements ICFG<Method, Node> {
31
32 protected final CallGraph<Node, Method> callGraph;
33
34 protected AbstractICFG(CallGraph<Node, Method> callGraph) {
35 this.callGraph = callGraph;
36 }
37
38 @Override
39 public Stream<Method> entryMethods() {
40 return callGraph.entryMethods();
41 }
42
43 @Override
44 public Set<Method> getCalleesOf(Node callSite) {
45 return callGraph.getCalleesOf(callSite);
46 }
47
48 @Override
49 public Set<Node> getCallersOf(Method method) {
50 return callGraph.getCallersOf(method);
51 }
52}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected