1 19 20 25 26 27 28 29 30 package soot.baf.internal; 31 32 import soot.*; 33 import soot.baf.*; 34 import soot.baf.*; 35 import soot.util.*; 36 import java.util.*; 37 38 public class BArrayWriteInst extends AbstractOpTypeInst 39 implements ArrayWriteInst 40 { 41 public BArrayWriteInst(Type opType) 42 { 43 super(opType); 44 } 45 46 47 public int getInCount() 48 { 49 return 3; 50 } 51 52 53 54 public Object clone() 55 { 56 return new BArrayWriteInst(getOpType()); 57 } 58 59 public int getInMachineCount() 60 { 61 return 2 + JasminClass.sizeOfType(getOpType()); 62 } 63 64 public int getOutCount() 65 { 66 return 0; 67 } 68 69 public int getOutMachineCount() 70 { 71 return 0; 72 } 73 74 final public String getName() { return "arraywrite"; } 75 76 public void apply(Switch sw) 77 { 78 ((InstSwitch) sw).caseArrayWriteInst(this); 79 } 80 public boolean containsArrayRef() { return true; } 81 } 82 | Popular Tags |