Package soot.jimple.toolkits.thread

Examples of soot.jimple.toolkits.thread.AbstractRuntimeThread.addMethod()


      while(runMethodsIt.hasNext())
      {
        SootMethod method = (SootMethod) runMethodsIt.next();
        if(!thread.containsMethod(method))
        {
          thread.addMethod(method);
          thread.addRunMethod(method);
        }
      }
     
      // Get a list containing all methods in the call graph(s) rooted at the possible run methods for this thread start statement
View Full Code Here


            Edge edge = (Edge) edgeInIt.next();
            if( edge.kind() != Kind.THREAD && thread.containsMethod(edge.src())) // called directly by any of the thread methods?
              ignoremethod = false;
          }
          if(!ignoremethod && !thread.containsMethod(method))
            thread.addMethod(method);
        }
        methodNum++;
      }
     
      // Add this list of methods to MHPLists
View Full Code Here

    // do same for main method
    AbstractRuntimeThread mainThread = new AbstractRuntimeThread();
//    List mainMethods = new ArrayList();
    MHPLists.add(mainThread);
    mainThread.setRunsOnce();
    mainThread.addMethod(mainMethod);
    mainThread.addRunMethod(mainMethod);
    mainThread.setIsMainThread();
    // get all the successors, add to threadMethods
    int methodNum = 0;
    while(methodNum < mainThread.methodCount())
View Full Code Here

        {
          if( ((Edge) edgeInIt.next()).kind() != Kind.THREAD )
            ignoremethod = false;
        }
        if(!ignoremethod && !mainThread.containsMethod(method))
          mainThread.addMethod(method);
      }
      methodNum++;
    }
    if(optionPrintDebug)
      G.v().out.println(mainThread.toString());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.