1 20 21 26 27 package soot.baf.internal; 28 29 import soot.*; 30 import soot.baf.*; 31 import soot.util.*; 32 import java.util.*; 33 34 public class BVirtualInvokeInst extends AbstractInvokeInst implements VirtualInvokeInst 35 { 36 public BVirtualInvokeInst(SootMethodRef methodRef) { 37 if( methodRef.isStatic() ) throw new RuntimeException ("wrong static-ness"); 38 this.methodRef = methodRef; 39 } 40 41 public int getInMachineCount() 42 { 43 return super.getInMachineCount() + 1; 44 } 45 46 public int getInCount() 47 { 48 return super.getInCount() + 1; 49 } 50 51 52 public Object clone() 53 { 54 return new BVirtualInvokeInst(methodRef); 55 } 56 57 58 final public String getName() { return "virtualinvoke"; } 59 60 public void apply(Switch sw) 61 { 62 ((InstSwitch) sw).caseVirtualInvokeInst(this); 63 } 64 } 65 66 67 68 69 70 71 72 | Popular Tags |