1 19 20 25 26 27 package soot.jimple.internal; 28 29 import soot.*; 30 import soot.jimple.*; 31 import soot.baf.*; 32 import soot.util.*; 33 import java.util.*; 34 35 public abstract class AbstractInstanceInvokeExpr extends AbstractInvokeExpr 36 implements InstanceInvokeExpr 37 { 38 protected ValueBox baseBox; 39 40 public Value getBase() 41 { 42 return baseBox.getValue(); 43 } 44 45 public ValueBox getBaseBox() 46 { 47 return baseBox; 48 } 49 50 public void setBase(Value base) 51 { 52 baseBox.setValue(base); 53 } 54 55 public List getUseBoxes() 56 { 57 List list = new ArrayList(); 58 59 list.addAll(baseBox.getValue().getUseBoxes()); 60 list.add(baseBox); 61 62 for(int i = 0; i < argBoxes.length; i++) 63 { 64 list.addAll(argBoxes[i].getValue().getUseBoxes()); 65 list.add(argBoxes[i]); 66 67 } 68 69 return list; 70 } 71 } 72 | Popular Tags |