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 BSpecialInvokeInst extends AbstractInvokeInst implements SpecialInvokeInst 35 { 36 public BSpecialInvokeInst(SootMethodRef methodRef) { 37 if( methodRef.isStatic() ) throw new RuntimeException ("wrong static-ness"); 38 this.methodRef = methodRef; 39 } 40 41 public int getInCount() 42 { 43 return super.getInCount() +1; 44 } 45 46 47 public int getInMachineCount() 48 { 49 return super.getInMachineCount() +1; 50 } 51 52 53 54 public Object clone() 55 { 56 return new BSpecialInvokeInst(methodRef); 57 } 58 59 public String getName() { return "specialinvoke"; } 60 61 public void apply(Switch sw) 62 { 63 ((InstSwitch) sw).caseSpecialInvokeInst(this); 64 } 65 } 66 67 | Popular Tags |