soot.jimple.toolkits.pointer.nativemethods
Class JavaLangRuntimeNative

java.lang.Object
  extended by soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
      extended by soot.jimple.toolkits.pointer.nativemethods.JavaLangRuntimeNative

public class JavaLangRuntimeNative
extends NativeMethodClass


Field Summary
 
Fields inherited from class soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
helper
 
Constructor Summary
JavaLangRuntimeNative(NativeHelper helper)
           
 
Method Summary
 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.
 
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(NativeHelper helper)
Method Detail

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_Runtime_execInternal

public 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;