soot.jimple.toolkits.pointer.nativemethods
Class JavaLangReflectArrayNative
java.lang.Object
soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
soot.jimple.toolkits.pointer.nativemethods.JavaLangReflectArrayNative
public class JavaLangReflectArrayNative
- extends NativeMethodClass
Method Summary |
void |
java_lang_reflect_Array_get(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Returns the value of the indexed component in the specified array
object. |
void |
java_lang_reflect_Array_multiNewArray(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Treat this method as |
void |
java_lang_reflect_Array_newArray(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Treat this method as |
void |
java_lang_reflect_Array_set(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
|
void |
simulateMethod(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
Implements the abstract method simulateMethod. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaLangReflectArrayNative
public JavaLangReflectArrayNative(NativeHelper helper)
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_reflect_Array_get
public void java_lang_reflect_Array_get(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Returns the value of the indexed component in the specified array
object. The value is automatically wrapped in an object if it has
a primitive type.
NOTE: @return = @param0[]
public static native java.lang.Object get(java.lang.Object, int)
throws java.lang.IllegalArgumentException,
java.lang.ArrayIndexOutOfBoundsException;
java_lang_reflect_Array_set
public void java_lang_reflect_Array_set(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
java_lang_reflect_Array_newArray
public void java_lang_reflect_Array_newArray(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Treat this method as
java_lang_reflect_Array_multiNewArray
public void java_lang_reflect_Array_multiNewArray(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Treat this method as