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 AbstractDefinitionStmt extends AbstractStmt 39 implements DefinitionStmt 40 { 41 ValueBox leftBox; 42 ValueBox rightBox; 43 44 List defBoxes; 45 46 public Value getLeftOp() 47 { 48 return leftBox.getValue(); 49 } 50 51 public Value getRightOp() 52 { 53 return rightBox.getValue(); 54 } 55 56 public ValueBox getLeftOpBox() 57 { 58 return leftBox; 59 } 60 61 public ValueBox getRightOpBox() 62 { 63 return rightBox; 64 } 65 66 public List getDefBoxes() 67 { 68 return defBoxes; 69 } 70 71 public List getUseBoxes() 72 { 73 List list = new ArrayList(); 74 75 list.addAll(leftBox.getValue().getUseBoxes()); 76 list.addAll(rightBox.getValue().getUseBoxes()); 77 list.add(rightBox); 78 return list; 79 } 80 81 public boolean fallsThrough() { return true;} 82 public boolean branches() { return false;} 83 } 84 85 86 87 88 89 90 | Popular Tags |