1 19 20 package soot.jimple.spark.pag; 21 import soot.jimple.spark.*; 22 import soot.*; 23 import java.util.*; 24 25 29 public class LocalVarNode extends VarNode { 30 public ContextVarNode context( Object context ) 31 { return cvns == null ? null : (ContextVarNode) cvns.get( context ); } 32 33 public SootMethod getMethod() { 34 return method; 35 } 36 public String toString() { 37 return "LocalVarNode "+getNumber()+" "+variable+" "+method; 38 } 39 40 41 LocalVarNode( PAG pag, Object variable, Type t, SootMethod m ) { 42 super( pag, variable, t ); 43 this.method = m; 44 } 46 47 void addContext( ContextVarNode cvn, Object context ) { 48 if( cvns == null ) cvns = new HashMap(); 49 cvns.put( context, cvn ); 50 } 51 52 53 54 protected Map cvns; 55 protected SootMethod method; 56 } 57 58 | Popular Tags |