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 JavaUtilJarJarFileNative extends NativeMethodClass { 34 public JavaUtilJarJarFileNative( 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.String[] getMetaInfoEntryNames()")) { 49 java_util_jar_JarFile_getMetaInfoEntryNames(method, 50 thisVar, 51 returnVar, 52 params); 53 return; 54 55 } else { 56 defaultMethod(method, thisVar, returnVar, params); 57 return; 58 59 } 60 } 61 62 63 70 public 71 void java_util_jar_JarFile_getMetaInfoEntryNames( 72 SootMethod method, 73 ReferenceVariable thisVar, 74 ReferenceVariable returnVar, 75 ReferenceVariable params[]) { 76 helper.assignObjectTo(returnVar, Environment.v().getStringObject()); 77 } 78 } 79 | Popular Tags |