public void simulateMethod(SootMethod method,ReferenceVariable thisVar,ReferenceVariable returnVar,ReferenceVariable params[]){
  String subSignature=method.getSubSignature();
  if (subSignature.equals("java.lang.Object get(java.lang.Object,int)")) {
    java_lang_reflect_Array_get(method,thisVar,returnVar,params);
    return;
  }
 else   if (subSignature.equals("void set(java.lang.Object,int,java.lang.Object)")) {
    java_lang_reflect_Array_set(method,thisVar,returnVar,params);
    return;
  }
 else   if (subSignature.equals("java.lang.Object newArray(java.lang.Class,int)")) {
    java_lang_reflect_Array_newArray(method,thisVar,returnVar,params);
    return;
  }
 else   if (subSignature.equals("java.lang.Object multiNewArray(java.lang.Class,int[])")) {
    java_lang_reflect_Array_multiNewArray(method,thisVar,returnVar,params);
    return;
  }
 else {
    defaultMethod(method,thisVar,returnVar,params);
    return;
  }
}

public void simulateMethod ( SootMethod method , ReferenceVariable thisVar , ReferenceVariable returnVar , ReferenceVariable params [ ] ) { String subSignature = method . getSubSignature ( ) ; if ( subSignature . equals ( "java.lang.Object get(java.lang.Object,int)" ) ) { java_lang_reflect_Array_get ( method , thisVar , returnVar , params ) ; return ; } else if ( subSignature . equals ( "void set(java.lang.Object,int,java.lang.Object)" ) ) { java_lang_reflect_Array_set ( method , thisVar , returnVar , params ) ; return ; } else if ( subSignature . equals ( "java.lang.Object newArray(java.lang.Class,int)" ) ) { java_lang_reflect_Array_newArray ( method , thisVar , returnVar , params ) ; return ; } else if ( subSignature . equals ( "java.lang.Object multiNewArray(java.lang.Class,int[])" ) ) { java_lang_reflect_Array_multiNewArray ( method , thisVar , returnVar , params ) ; return ; } else { defaultMethod ( method , thisVar , returnVar , params ) ; return ; } }
implements the abstract method simulatemethod . it distributes the request to the corresponding methods by signatures .
