1 19 20 25 26 27 28 29 30 31 package soot.jimple.internal; 32 33 import soot.*; 34 import soot.jimple.*; 35 import soot.util.*; 36 import java.util.*; 37 38 public class JNewMultiArrayExpr extends AbstractNewMultiArrayExpr 39 { 40 public JNewMultiArrayExpr(ArrayType type, List sizes) 41 { 42 super(type, new ValueBox[sizes.size()]); 43 44 for(int i = 0; i < sizes.size(); i++) 45 sizeBoxes[i] = Jimple.v().newImmediateBox((Value) sizes.get(i)); 46 } 47 48 public Object clone() 49 { 50 List clonedSizes = new ArrayList(getSizeCount()); 51 52 for(int i = 0; i < getSizeCount(); i++) { 53 clonedSizes.add(i, Jimple.cloneIfNecessary(getSize(i))); 54 } 55 56 57 return new JNewMultiArrayExpr(baseType, clonedSizes); 58 } 59 60 61 } 62 | Popular Tags |