1 19 20 26 27 package soot.jimple.toolkits.pointer.nativemethods; 28 29 import soot.*; 30 import soot.jimple.toolkits.pointer.representations.*; 31 import soot.jimple.toolkits.pointer.util.*; 32 33 public class JavaLangThrowableNative extends NativeMethodClass { 34 public JavaLangThrowableNative( NativeHelper helper ) { super(helper); } 35 36 41 public void simulateMethod(SootMethod method, 42 ReferenceVariable thisVar, 43 ReferenceVariable returnVar, 44 ReferenceVariable params[]){ 45 46 String subSignature = method.getSubSignature(); 47 48 if (subSignature.equals("java.lang.Throwable fillInStackTrace()")) { 49 java_lang_Throwable_fillInStackTrace(method, thisVar, 50 returnVar, params); 51 return; 52 53 } else { 54 defaultMethod(method, thisVar, returnVar, params); 55 return; 56 57 } 58 } 59 60 66 public 67 void java_lang_Throwable_fillInStackTrace(SootMethod method, 68 ReferenceVariable thisVar, 69 ReferenceVariable returnVar, 70 ReferenceVariable params[]) { 71 helper.assign(returnVar, thisVar); 72 } 73 74 79 80 } 81 | Popular Tags |