1 19 20 25 26 27 28 29 30 package soot.baf.internal; 31 32 import soot.*; 33 import soot.baf.*; 34 import soot.util.*; 35 import java.util.*; 36 37 public class BIfNonNullInst extends AbstractBranchInst implements IfNonNullInst 38 { 39 public BIfNonNullInst(Unit target) 40 { 41 super(Baf.v().newInstBox(target)); 42 } 43 44 public int getInCount() 45 { 46 return 1; 47 } 48 49 public Object clone() 50 { 51 return new BIfNonNullInst(getTarget()); 52 } 53 54 public int getInMachineCount() 55 { 56 return 1; 57 } 58 59 public int getOutCount() 60 { 61 return 0; 62 } 63 64 public int getOutMachineCount() 65 { 66 return 0; 67 } 68 69 70 public String getName() { return "ifnonnull"; } 71 72 public void apply(Switch sw) 73 { 74 ((InstSwitch) sw).caseIfNonNullInst(this); 75 } 76 } 77 78 | Popular Tags |