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