1 20 21 26 27 28 29 30 31 32 package soot.jimple.internal; 33 34 import soot.*; 35 import soot.jimple.*; 36 import soot.util.*; 37 import java.util.*; 38 39 public class JVirtualInvokeExpr extends AbstractVirtualInvokeExpr 40 { 41 public JVirtualInvokeExpr(Value base, SootMethodRef methodRef, List args) 42 { 43 super(Jimple.v().newLocalBox(base), methodRef, new ValueBox[args.size()]); 44 45 for(int i = 0; i < args.size(); i++) 46 this.argBoxes[i] = Jimple.v().newImmediateBox((Value) args.get(i)); 47 } 48 49 public Object clone() 50 { 51 ArrayList clonedArgs = new ArrayList(getArgCount()); 52 53 for(int i = 0; i < getArgCount(); i++) { 54 clonedArgs.add(i, getArg(i)); 55 } 56 57 return new JVirtualInvokeExpr((Local) getBase(), methodRef, clonedArgs); 58 } 59 60 } 61 | Popular Tags |