1 19 20 package soot.jimple.toolkits.callgraph; 21 import soot.*; 22 import soot.options.*; 23 import soot.jimple.*; 24 import java.util.*; 25 import soot.util.*; 26 import soot.util.queue.*; 27 28 31 public class OneCFAContextManager implements ContextManager 32 { 33 private CallGraph cg; 34 35 public OneCFAContextManager( CallGraph cg ) { 36 this.cg = cg; 37 } 38 39 public void addStaticEdge( MethodOrMethodContext src, Unit srcUnit, SootMethod target, Kind kind ) { 40 cg.addEdge( new Edge( src, srcUnit, MethodContext.v( target, srcUnit ), kind ) ); 41 } 42 43 public void addVirtualEdge( MethodOrMethodContext src, Unit srcUnit, SootMethod target, Kind kind, Context typeContext ) { 44 cg.addEdge( new Edge( src, srcUnit, MethodContext.v( target, srcUnit ), kind ) ); 45 } 46 47 public CallGraph callGraph() { return cg; } 48 } 49 50 | Popular Tags |