| 28 | import java.util.stream.Stream; |
| 29 | |
| 30 | abstract 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected