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 abstract public class AbstractUnopExpr implements UnopExpr 39 { 40 ValueBox opBox; 41 42 protected AbstractUnopExpr(ValueBox opBox) { this.opBox = opBox; } 43 44 public abstract Object clone(); 45 46 public Value getOp() 47 { 48 return (Value) opBox.getValue(); 49 } 50 51 public void setOp(Value op) 52 { 53 opBox.setValue(op); 54 } 55 56 public ValueBox getOpBox() 57 { 58 return opBox; 59 } 60 61 public List getUseBoxes() 62 { 63 List list = new ArrayList(); 64 65 list.addAll(opBox.getValue().getUseBoxes()); 66 list.add(opBox); 67 68 return list; 69 } 70 71 } 72 | Popular Tags |