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 BDup1_x1Inst extends BDupInst implements Dup1_x1Inst 38 { 39 40 private Type mOpType; 41 private Type mUnderType; 42 43 public BDup1_x1Inst(Type aOpType, Type aUnderType) 44 { 45 mOpType = Baf.getDescriptorTypeOf(aOpType); 46 mUnderType = Baf.getDescriptorTypeOf(aUnderType); 47 } 48 49 public Type getOp1Type() 50 { 51 return mOpType; 52 } 53 54 public Type getUnder1Type() 55 { 56 return mUnderType; 57 } 58 59 60 public List getOpTypes() 61 { 62 List res = new ArrayList(); 63 res.add(mOpType); 64 return res; 65 } 66 67 public List getUnderTypes() 68 { 69 List res = new ArrayList(); 70 res.add(mUnderType); 71 return res; 72 } 73 74 75 final public String getName() { return "dup1_x1"; } 76 77 78 public void apply(Switch sw) 79 { 80 ((InstSwitch) sw).caseDup1_x1Inst(this); 81 } 82 83 84 85 public String toString() 86 { 87 return "dup1_x1." + Baf.bafDescriptorOf(mOpType) + "_" + Baf.bafDescriptorOf(mUnderType); 88 } 89 90 } 91 92 93 94 | Popular Tags |