Newer
Older
package tfm.graphs.sdg;
class MethodCallReplacer {
public MethodCallReplacer(SDG sdg) {
this.sdg = sdg;
this.sdg.getContextPDGGraphMap()
.forEach((context, pdgGraph) -> {
if (!context.getCurrentMethod().isPresent()) {
return; // Should NOT happen
}
context.getCurrentMethod().get().accept(new MethodCallReplacerVisitor(pdgGraph), context);
});