1 19 20 package soot.shimple.internal; 21 22 import soot.*; 23 import soot.toolkits.scalar.ValueUnitPair; 24 25 31 public class SValueUnitPair extends ValueUnitPair implements SUnitBox 32 { 33 public SValueUnitPair(Value value, Unit unit) 34 { 35 super(value, unit); 36 setUnitChanged(true); 37 } 38 39 public boolean isBranchTarget() 40 { 41 return false; 42 } 43 44 public void setUnit(Unit u) 45 { 46 super.setUnit(u); 47 setUnitChanged(true); 48 } 49 50 protected boolean unitChanged = false; 51 52 55 public boolean isUnitChanged() 56 { 57 return unitChanged; 58 } 59 60 63 public void setUnitChanged(boolean unitChanged) 64 { 65 this.unitChanged = unitChanged; 66 } 67 } 68 | Popular Tags |