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 BIfCmpLtInst extends AbstractOpTypeBranchInst 38 implements IfCmpLtInst 39 { 40 public BIfCmpLtInst(Type opType, Unit target) 41 { 42 super(opType, Baf.v().newInstBox(target)); 43 } 44 public int getInCount() 45 { 46 return 2; 47 } 48 49 50 public Object clone() 51 { 52 return new BIfCmpLtInst(getOpType(), getTarget()); 53 } 54 55 public int getInMachineCount() 56 { 57 return 2*JasminClass.sizeOfType(getOpType()); 58 } 59 60 public int getOutCount() 61 { 62 return 0; 63 } 64 65 public int getOutMachineCount() 66 { 67 return 0; 68 } 69 70 71 72 public String getName() { return "ifcmplt"; } 73 74 public void apply(Switch sw) 75 { 76 ((InstSwitch) sw).caseIfCmpLtInst(this); 77 } 78 } 79 80 | Popular Tags |