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 BNewArrayInst extends AbstractInst implements NewArrayInst 38 { 39 protected Type baseType; 40 41 public BNewArrayInst(Type opType) 42 { 43 baseType = opType; 44 } 45 46 public int getInCount() 47 { 48 return 1; 49 } 50 51 public int getOutCount() 52 { 53 return 1; 54 } 55 56 57 58 59 public Object clone() 60 { 61 return new BNewArrayInst(baseType); 62 } 63 64 public int getInMachineCount() 65 { 66 return 1; 67 } 68 69 public int getOutMachineCount() 70 { 71 return 1; 72 } 73 74 75 final public String getName() { return "newarray"; } 76 77 public Type getBaseType() { return baseType; } 78 public void setBaseType(Type type) { baseType = type; } 79 80 81 public void apply(Switch sw) 82 { 83 ((InstSwitch) sw).caseNewArrayInst(this); 84 } 85 86 public boolean containsNewExpr() { 87 return true; 88 } 89 } 90 91 | Popular Tags |