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


Constructor Summary
JavaLangSecurityManagerNative(Singletons.Global g)
           
 
Method Summary
static 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.
static void java_lang_SecurityManager_currentLoadedClass0(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
          Returns a variable pointing to all class objects.
static 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.
static JavaLangSecurityManagerNative v()
           
 
Methods inherited from class soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
defaultMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaLangSecurityManagerNative

public JavaLangSecurityManagerNative(Singletons.Global g)
Method Detail

v

public static JavaLangSecurityManagerNative v()

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.
Overrides:
simulateMethod in class NativeMethodClass

java_lang_SecurityManager_getClassContext

public static 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 static 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 static 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();