Class JavaNetInetAddressImplNative
- java.lang.Object
-
- soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
-
- 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
Constructors Constructor Description JavaNetInetAddressImplNative(NativeHelper helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidjava_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;voidjava_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.voidsimulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable[] params)Implements the abstract method simulateMethod.-
Methods inherited from class soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
defaultMethod
-
-
-
-
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:
simulateMethodin classNativeMethodClass
-
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;
-
-