public class JavaLangClassLoaderNative extends NativeMethodClass
helper
Constructor and Description |
---|
JavaLangClassLoaderNative(NativeHelper helper) |
Modifier and Type | Method and Description |
---|---|
void |
java_lang_ClassLoader_defineClass0(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Converts an array of bytes into an instance of class
Class.
|
void |
java_lang_ClassLoader_findBootstrapClass(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
NOTE: undocumented, finding the bootstrap class
Assuming all classes
private native
java.lang.Class findBootstrapClass(java.lang.String)
throws java.lang.ClassNotFoundException;
|
void |
java_lang_ClassLoader_findLoadedClass(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Finds the class with the given name if it had been previously
loaded through this class loader.
|
void |
java_lang_ClassLoader_getCallerClassLoader(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Returns a variable pointing to the only class loader
static native java.lang.ClassLoader getCallerClassLoader();
|
void |
simulateMethod(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Implements the abstract method simulateMethod.
|
defaultMethod
public JavaLangClassLoaderNative(NativeHelper helper)
public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
simulateMethod
in class NativeMethodClass
public void java_lang_ClassLoader_defineClass0(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
public void java_lang_ClassLoader_findBootstrapClass(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
public void java_lang_ClassLoader_findLoadedClass(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
public void java_lang_ClassLoader_getCallerClassLoader(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)