Examples of retrieveActiveBody()


Examples of soot.SootMethod.retrieveActiveBody()

    public static void implementExecutableInterface(SootClass theClass) {
        // Loop through all the methods and remove calls to super.
        for (Iterator methods = theClass.getMethods().iterator(); methods
                .hasNext();) {
            SootMethod method = (SootMethod) methods.next();
            JimpleBody body = (JimpleBody) method.retrieveActiveBody();

            for (Iterator units = body.getUnits().snapshotIterator(); units
                    .hasNext();) {
                Stmt stmt = (Stmt) units.next();
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

        // FIXME: what if the inlined code contains another call
        // to this class???
        for (Iterator methods = theClass.getMethods().iterator(); methods
                .hasNext();) {
            SootMethod method = (SootMethod) methods.next();
            JimpleBody body = (JimpleBody) method.retrieveActiveBody();

            for (Iterator units = body.getUnits().snapshotIterator(); units
                    .hasNext();) {
                Stmt stmt = (Stmt) units.next();
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

        SootMethod clinitMethod;
        Body clinitBody;

        if (_modelClass.declaresMethodByName("<clinit>")) {
            clinitMethod = _modelClass.getMethodByName("<clinit>");
            clinitBody = clinitMethod.retrieveActiveBody();
        } else {
            clinitMethod = new SootMethod("<clinit>", Collections.EMPTY_LIST,
                    VoidType.v(), Modifier.PUBLIC | Modifier.STATIC);
            _modelClass.addMethod(clinitMethod);
            clinitBody = Jimple.v().newBody(clinitMethod);
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

                                                .getMethod(invokeMethod
                                                        .getSubSignature());
                                        System.out.println("SootUtilties."
                                                + "foldClass() " + "found "
                                                + superC + " " + invokeMethod);
                                        invokeMethod.retrieveActiveBody();
                                        break;
                                    }

                                    scratchClass = superC;
                                }
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

        // being inlined.
        if (!inlinee.getDeclaringClass().isApplicationClass()) {
            inlinee.getDeclaringClass().setLibraryClass();
        }

        inlinee.retrieveActiveBody();
        return inlinee;
    }

    public static SootMethod resolveVirtualInvokationForInlining(
            SootClass baseClass, SootMethod targetMethod) {
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

        // being inlined.
        if (!inlinee.getDeclaringClass().isApplicationClass()) {
            inlinee.getDeclaringClass().setLibraryClass();
        }

        inlinee.retrieveActiveBody();
        return inlinee;
    }

    /** Inline all calls to the given method that occur within the given class.
     *  Note that this alone will really only increase the size of the
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

        for (Iterator methods = theClass.getMethods().iterator(); methods
                .hasNext();) {
            SootMethod method = (SootMethod) methods.next();

            // System.out.println("method = " + method.getSignature());
            Body body = method.retrieveActiveBody();

            // use a snapshotIterator since we are going to be manipulating
            // the statements.
            Iterator j = body.getUnits().snapshotIterator();
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

            // ignore static methods?
            if (method.isStatic()) {
                continue;
            }

            JimpleBody body = (JimpleBody) method.retrieveActiveBody();

            for (Iterator useBoxes = body.getUseAndDefBoxes().iterator(); useBoxes
                    .hasNext();) {
                ValueBox box = (ValueBox) useBoxes.next();
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

                .getMethod("boolean hasNext()");

        for (Iterator methods = theClass.getMethods().iterator(); methods
                .hasNext();) {
            SootMethod method = (SootMethod) methods.next();
            JimpleBody body = (JimpleBody) method.retrieveActiveBody();

            BlockGraph graph = new CompleteBlockGraph(body);

            for (Iterator blocks = graph.iterator(); blocks.hasNext();) {
                Block block = (Block) blocks.next();
View Full Code Here

Examples of soot.SootMethod.retrieveActiveBody()

            if (debug) {
                System.out.println("updating types for " + method);
            }

            Body body = method.retrieveActiveBody();

            for (Iterator units = body.getUnits().snapshotIterator(); units
                    .hasNext();) {
                Unit unit = (Unit) units.next();
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.