soot.jimple.toolkits.pointer.nativemethods
Class JavaLangSecurityManagerNative
java.lang.Object
soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
soot.jimple.toolkits.pointer.nativemethods.JavaLangSecurityManagerNative
public class JavaLangSecurityManagerNative
- extends NativeMethodClass
Method Summary |
void |
java_lang_SecurityManager_currentClassLoader0(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Returns the class loader of the most recently executing method
from a class defined using a non-system class loader. |
void |
java_lang_SecurityManager_currentLoadedClass0(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Returns a variable pointing to all class objects. |
void |
java_lang_SecurityManager_getClassContext(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Returns the current execution stack as an array of classes. |
void |
simulateMethod(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Implements the abstract method simulateMethod. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaLangSecurityManagerNative
public JavaLangSecurityManagerNative(NativeHelper helper)
simulateMethod
public void simulateMethod(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Implements the abstract method simulateMethod.
It distributes the request to the corresponding methods
by signatures.
- Specified by:
simulateMethod
in class NativeMethodClass
java_lang_SecurityManager_getClassContext
public void java_lang_SecurityManager_getClassContext(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Returns the current execution stack as an array of classes.
NOTE: an array of object may be created.
protected native java.lang.Class getClassContext()[];
java_lang_SecurityManager_currentClassLoader0
public void java_lang_SecurityManager_currentClassLoader0(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Returns the class loader of the most recently executing method
from a class defined using a non-system class loader. A
non-system class loader is defined as being a class loader that
is not equal to the system class loader (as returned by
ClassLoader.getSystemClassLoader()) or one of its ancestors.
NOTE: returns a variable pointing to the only class loader object.
private native java.lang.ClassLoader currentClassLoader0();
java_lang_SecurityManager_currentLoadedClass0
public void java_lang_SecurityManager_currentLoadedClass0(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Returns a variable pointing to all class objects.
private native java.lang.Class currentLoadedClass0();