public void simulateMethod(SootMethod method,ReferenceVariable thisVar,ReferenceVariable returnVar,ReferenceVariable params[]){
  String subSignature=method.getSubSignature();
  if (subSignature.equals("java.lang.Class defineClass0(java.lang.String,byte[],int,int,java.lang.security.ProtectionDomain)")) {
    java_lang_ClassLoader_defineClass0(method,thisVar,returnVar,params);
    return;
  }
 else   if (subSignature.equals("java.lang.Class findBootstrapClass(java.lang.String)")) {
    java_lang_ClassLoader_findBootstrapClass(method,thisVar,returnVar,params);
    return;
  }
 else   if (subSignature.equals("java.lang.Class findLoadedClass(java.lang.String)")) {
    java_lang_ClassLoader_findLoadedClass(method,thisVar,returnVar,params);
    return;
  }
 else   if (subSignature.equals("java.lang.ClassLoader getCallerClassLoader()")) {
    java_lang_ClassLoader_getCallerClassLoader(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.Class defineClass0(java.lang.String,byte[],int,int,java.lang.security.ProtectionDomain)" ) ) { java_lang_ClassLoader_defineClass0 ( method , thisVar , returnVar , params ) ; return ; } else if ( subSignature . equals ( "java.lang.Class findBootstrapClass(java.lang.String)" ) ) { java_lang_ClassLoader_findBootstrapClass ( method , thisVar , returnVar , params ) ; return ; } else if ( subSignature . equals ( "java.lang.Class findLoadedClass(java.lang.String)" ) ) { java_lang_ClassLoader_findLoadedClass ( method , thisVar , returnVar , params ) ; return ; } else if ( subSignature . equals ( "java.lang.ClassLoader getCallerClassLoader()" ) ) { java_lang_ClassLoader_getCallerClassLoader ( 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 .
