soot.jimple.toolkits.pointer.nativemethods
Class JavaNetInetAddressImplNative

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

public class JavaNetInetAddressImplNative
extends NativeMethodClass


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

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