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 JavaLangReflectConstructorNative extends NativeMethodClass { 34 public JavaLangReflectConstructorNative( 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.Object newInstance(java.lang.Object[])")){ 49 java_lang_reflect_Constructor_newInstance(method, thisVar, returnVar, params); 50 return; 51 52 } else { 53 defaultMethod(method, thisVar, returnVar, params); 54 return; 55 56 } 57 } 58 59 60 77 public 78 void java_lang_reflect_Constructor_newInstance(SootMethod method, 79 ReferenceVariable thisVar, 80 ReferenceVariable returnVar, 81 ReferenceVariable params[]){ 82 throw new NativeMethodNotSupportedException(method); 83 } 84 } 85 | Popular Tags |