soot.jimple.toolkits.pointer.nativemethods
Class JavaNetInetAddressImplNative

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

public class JavaNetInetAddressImplNative
extends NativeMethodClass


Constructor Summary
JavaNetInetAddressImplNative(Singletons.Global g)
           
 
Method Summary
static void java_net_InetAddressImpl_getHostByAddr(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
          Create a string object native java.lang.String getHostByAddr(int) throws java.net.UnknownHostException;
static void java_net_InetAddressImpl_getLocalHostName(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
          Returns a variable pointing to a string constant I am not sure if repeated calls of methods in this class will return the same object or not.
 void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)
          Implements the abstract method simulateMethod.
static JavaNetInetAddressImplNative 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

JavaNetInetAddressImplNative

public JavaNetInetAddressImplNative(Singletons.Global g)
Method Detail

v

public static JavaNetInetAddressImplNative 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_net_InetAddressImpl_getLocalHostName

public static void java_net_InetAddressImpl_getLocalHostName(SootMethod method,
                                                             ReferenceVariable thisVar,
                                                             ReferenceVariable returnVar,
                                                             ReferenceVariable[] params)
Returns a variable pointing to a string constant I am not sure if repeated calls of methods in this class will return the same object or not. A conservative approach would say YES, for definitely points-to, but NO for may points-to. We should avoid analyzing these unsafe native methods. native java.lang.String getLocalHostName() throws java.net.UnknownHostException;

java_net_InetAddressImpl_getHostByAddr

public static void java_net_InetAddressImpl_getHostByAddr(SootMethod method,
                                                          ReferenceVariable thisVar,
                                                          ReferenceVariable returnVar,
                                                          ReferenceVariable[] params)
Create a string object native java.lang.String getHostByAddr(int) throws java.net.UnknownHostException;