soot.jimple.toolkits.pointer.nativemethods
Class JavaLangRuntimeNative

java.lang.Object
  |
  +--soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
        |
        +--soot.jimple.toolkits.pointer.nativemethods.JavaLangRuntimeNative

public class JavaLangRuntimeNative
extends NativeMethodClass


Constructor Summary
JavaLangRuntimeNative(Singletons.Global g)
           
 
Method Summary
static void java_lang_Runtime_execInternal(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
          execInternal is called by all exec method.
 void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
          Implements the abstract method simulateMethod.
static JavaLangRuntimeNative 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

JavaLangRuntimeNative

public JavaLangRuntimeNative(Singletons.Global g)
Method Detail

v

public static JavaLangRuntimeNative 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_Runtime_execInternal

public static void java_lang_Runtime_execInternal(SootMethod method,
                                                  ReferenceVariable thisVar,
                                                  ReferenceVariable returnVar,
                                                  ReferenceVariable[] params)
execInternal is called by all exec method. It return a Process object. NOTE: creates a Process object. private native java.lang.Process execInternal(java.lang.String[], java.lang.String[], java.lang.String) throws java.io.IOException;