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 BNegInst extends AbstractOpTypeInst implements NegInst 38 { 39 public BNegInst(Type opType) 40 { 41 super(opType); 42 } 43 44 public int getInCount() 45 { 46 return 1; 47 } 48 49 public int getOutCount() 50 { 51 return 1; 52 } 53 54 public Object clone() 55 { 56 return new BNegInst(getOpType()); 57 } 58 59 public int getInMachineCount() 60 { 61 return JasminClass.sizeOfType(getOpType()); 62 } 63 64 65 public int getOutMachineCount() 66 { 67 return JasminClass.sizeOfType(getOpType()); 68 } 69 70 public final String getName() { return "neg"; } 71 72 public void apply(Switch sw) 73 { 74 ((InstSwitch) sw).caseNegInst(this); 75 } 76 } 77 78 | Popular Tags |