Examples of JimpleBody


Examples of soot.jimple.JimpleBody

            PortInliner inliner) {
        // Loop through all the methods and inline calls on ports.
        for (Iterator methods = modelClass.getMethods().iterator(); methods
                .hasNext();) {
            SootMethod method = (SootMethod) methods.next();
            JimpleBody body = (JimpleBody) method.retrieveActiveBody();

            if (_debug) {
                System.out.println("inline inside port body of " + method
                        + " = " + body);
            }

            boolean moreToDo = true;

            while (moreToDo) {
                moreToDo = _inlineInsideMethodCalls(modelClass, model, method,
                        body, inliner, _debug);
                LocalNameStandardizer.v().transform(body, _phaseName + ".lns");
            }
        }

        // Loop over all the model instance classes.
        for (Iterator entities = model.deepEntityList().iterator(); entities
                .hasNext();) {
            ComponentEntity entity = (ComponentEntity) entities.next();
            String className = ModelTransformer.getInstanceClassName(entity,
                    _options);
            SootClass entityClass = Scene.v().loadClassAndSupport(className);

            // Loop through all the methods and replace calls on ports.
            for (Iterator methods = entityClass.getMethods().iterator(); methods
                    .hasNext();) {
                SootMethod method = (SootMethod) methods.next();
                JimpleBody body = (JimpleBody) method.retrieveActiveBody();

                //System.out.println("Replacing port invocations in" + method);
                // System.out.println("method = " + method);
                boolean moreToDo = true;
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.