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