Package soot

Examples of soot.SootField.makeRef()


                // Get the actor.
                units.insertBefore(Jimple.v().newAssignStmt(
                        actorLocal,
                        Jimple.v().newInstanceFieldRef(thisLocal,
                                field.makeRef())), insertPoint);
                units.insertBefore(Jimple.v().newInvokeStmt(
                        Jimple.v().newVirtualInvokeExpr(actorLocal,
                                preinitializeMethod.makeRef())), insertPoint);
            }
View Full Code Here


                // Set the field.
                units.insertBefore(Jimple.v().newAssignStmt(
                        actorLocal,
                        Jimple.v().newInstanceFieldRef(thisLocal,
                                field.makeRef())), insertPoint);
                units.insertBefore(Jimple.v().newInvokeStmt(
                        Jimple.v().newVirtualInvokeExpr(actorLocal,
                                initializeMethod.makeRef())), insertPoint);
            }
View Full Code Here

                        PtolemyUtilities.ioportType);
                body.getLocals().add(tempPortLocal);
                units.insertBefore(Jimple.v().newAssignStmt(
                        tempPortLocal,
                        Jimple.v().newInstanceFieldRef(thisLocal,
                                field.makeRef())), insertPoint);
                units.insertBefore(Jimple.v().newAssignStmt(
                        portLocal,
                        Jimple.v().newCastExpr(tempPortLocal,
                                PtolemyUtilities.ioportType)), insertPoint);
View Full Code Here

                        PtolemyUtilities.ioportType);
                body.getLocals().add(tempPortLocal);
                units.insertBefore(Jimple.v().newAssignStmt(
                        tempPortLocal,
                        Jimple.v().newInstanceFieldRef(thisLocal,
                                field.makeRef())), insertPoint);
                units.insertBefore(Jimple.v().newAssignStmt(
                        portLocal,
                        Jimple.v().newCastExpr(tempPortLocal,
                                PtolemyUtilities.ioportType)), insertPoint);
View Full Code Here

                // Set the field.
                units.insertBefore(Jimple.v().newAssignStmt(
                        actorLocal,
                        Jimple.v().newInstanceFieldRef(thisLocal,
                                field.makeRef())), insertPoint);
                units.insertBefore(Jimple.v().newInvokeStmt(
                        Jimple.v().newVirtualInvokeExpr(actorLocal,
                                wrapupMethod.makeRef())), insertPoint);
            }
View Full Code Here

                // assign the value.
                body.getUnits().insertBefore(
                        Jimple.v().newAssignStmt(
                                Jimple.v().newStaticFieldRef(
                                        arrayField.makeRef()), expr.getArg(0)),
                        stmt);
            }
        }

        // blow away the send.
View Full Code Here

                channelValue, false);

        // assign the value.
        body.getUnits().insertBefore(
                Jimple.v().newAssignStmt(returnLocal,
                        Jimple.v().newStaticFieldRef(field.makeRef())), stmt);

        // We may be calling get without setting the return value
        // to anything.
        if (stmt instanceof DefinitionStmt) {
            // Replace the get() with an array read.
View Full Code Here

                channelValue, true);

        // assign the value.
        body.getUnits().insertBefore(
                Jimple.v().newAssignStmt(returnLocal,
                        Jimple.v().newStaticFieldRef(field.makeRef())), stmt);

        // We may be calling get without setting the return value
        // to anything.
        if (stmt instanceof DefinitionStmt) {
            // Replace the get() with an array read.
View Full Code Here

                channelValue, false);

        // assign the value.
        body.getUnits().insertBefore(
                Jimple.v().newAssignStmt(
                        Jimple.v().newStaticFieldRef(field.makeRef()),
                        expr.getArg(1)), stmt);
        body.getUnits().remove(stmt);
    }

    /** Replace the send command at the given unit in the
View Full Code Here

                channelValue, true);

        // assign the value.
        body.getUnits().insertBefore(
                Jimple.v().newAssignStmt(
                        Jimple.v().newStaticFieldRef(field.makeRef()),
                        expr.getArg(1)), stmt);
        body.getUnits().remove(stmt);
    }

    // Create the communication buffers for communication between
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.