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 JStaticInvokeExpr extends AbstractStaticInvokeExpr 40 { 41 public JStaticInvokeExpr(SootMethodRef methodRef, List args) 42 { 43 super(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 JStaticInvokeExpr(SootMethodRef methodRef, ValueBox[] args) 50 { 51 super(methodRef, args); 52 } 53 54 55 public Object clone() 56 { 57 ArrayList clonedArgs = new ArrayList(getArgCount()); 58 59 for(int i = 0; i < getArgCount(); i++) { 60 clonedArgs.add(i, getArg(i)); 61 } 62 63 return new JStaticInvokeExpr(methodRef, clonedArgs); 64 } 65 } 66 67 68 | Popular Tags |