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 BNewInst extends AbstractRefTypeInst implements NewInst 38 { 39 public BNewInst(RefType opType) 40 { 41 super(opType); 42 } 43 public int getInCount() 44 { 45 return 0; 46 } 47 48 49 public Object clone() 50 { 51 return new BNewInst(getBaseType()); 52 } 53 54 public int getInMachineCount() 55 { 56 return 0; 57 } 58 59 public int getOutCount() 60 { 61 return 1; 62 } 63 64 public int getOutMachineCount() 65 { 66 return 1; 67 } 68 69 final public String getName() { return "new"; } 70 71 public void apply(Switch sw) 72 { 73 ((InstSwitch) sw).caseNewInst(this); 74 } 75 76 public boolean containsNewExpr() { 77 return true; 78 } 79 } 80 81 | Popular Tags |