Package soot

Examples of soot.Local


            Iterator locals = body.getLocals().iterator();
            code.append(_indent(1)
                    + _comment("Declarations for local variables."));

            while (locals.hasNext()) {
                Local nextLocal = (Local) (locals.next());

                if (!parameterAndThisLocals.contains(nextLocal)) {
                    code.append(_indent(1));

                    Type localType = nextLocal.getType();
                    code.append(CNames.typeNameOf(localType));
                    code.append(" " + CNames.localNameOf(nextLocal) + ";\n");
                    _updateRequiredTypes(localType);
                }
            }

            code.append("\n");

            // Initialize local variables.
            code.append(_indent(1)
                    + _comment("Initializations for local variables."));

            locals = body.getLocals().iterator();

            while (locals.hasNext()) {
                Local nextLocal = (Local) (locals.next());

                if (!parameterAndThisLocals.contains(nextLocal)) {
                    code.append(_indent(1) + CNames.localNameOf(nextLocal)
                            + " = ");

                    // Set RefTypes to NULL pointers, and all other variables
                    // to 0.
                    if (nextLocal.getType() instanceof RefType) {
                        code.append("NULL;\n");
                    } else {
                        code.append("0;\n");
                    }
                }
View Full Code Here


        for (parameterIndex = 0; parameterIndex < method.getParameterCount(); parameterIndex++) {
            if (parameterCount++ > 0) {
                code.append(", ");
            }

            Local local = body.getParameterLocal(parameterIndex);
            parameterAndThisLocals.add(local);

            Type parameterType = local.getType();
            code.append(CNames.typeNameOf(parameterType) + " "
                    + CNames.localNameOf(local));
            _updateRequiredTypes(parameterType);
        }
View Full Code Here

        Type variableType = RefType.v(PtolemyUtilities.variableClass);

        // A local that we will use to set the value of our
        // settable attributes.
        Local attributeLocal = Jimple.v().newLocal("attribute",
                PtolemyUtilities.attributeType);
        body.getLocals().add(attributeLocal);

        Local settableLocal = Jimple.v().newLocal("settable",
                PtolemyUtilities.settableType);
        body.getLocals().add(settableLocal);

        Local variableLocal = Jimple.v().newLocal("variable", variableType);
        body.getLocals().add(variableLocal);

        for (Iterator attributes = attributeList.iterator(); attributes
                .hasNext();) {
            Object object = attributes.next();
            System.out.println("object = " + object.getClass());

            Attribute attribute = (Attribute) object;

            if (_isIgnorableAttribute(attribute)) {
                continue;
            }

            String className = attribute.getClass().getName();
            /* Type attributeType =*/RefType.v(className);
            String attributeName = attribute.getName(context);
            /*String fieldName =*/getFieldNameForAttribute(attribute, context);

            Local local = attributeLocal;
            body.getUnits().insertBefore(
                    Jimple.v().newAssignStmt(
                            attributeLocal,
                            Jimple.v().newVirtualInvokeExpr(
                                    contextLocal,
                                    PtolemyUtilities.getAttributeMethod
                                            .makeRef(),
                                    StringConstant.v(attributeName))),
                    insertPoint);

            if (attribute instanceof Variable) {
                // If the attribute is a parameter, then generateCode...
                Local tokenLocal = DataUtilities.generateExpressionCodeBefore(
                        (Entity) namedObj, theClass, ((Variable) attribute)
                                .getExpression(), new HashMap(), new HashMap(),
                        body, insertPoint);

                // cast to Variable.
View Full Code Here

        Type variableType = RefType.v(PtolemyUtilities.variableClass);

        // A local that we will use to set the value of our
        // settable attributes.
        Local attributeLocal = Jimple.v().newLocal("attribute",
                PtolemyUtilities.attributeType);
        body.getLocals().add(attributeLocal);

        Local settableLocal = Jimple.v().newLocal("settable",
                PtolemyUtilities.settableType);
        body.getLocals().add(settableLocal);

        Local variableLocal = Jimple.v().newLocal("variable", variableType);
        body.getLocals().add(variableLocal);

        for (Iterator attributes = namedObj.attributeList().iterator(); attributes
                .hasNext();) {
            Attribute attribute = (Attribute) attributes.next();

            if (_isIgnorableAttribute(attribute)) {
                continue;
            }

            SootClass attributeClass = (SootClass) _objectToClassMap
                    .get(attribute);

            if (attributeClass == null) {
                attributeClass = Scene.v().loadClassAndSupport(
                        attribute.getClass().getName());
            }

            String className = attributeClass.getName();
            Type attributeType = RefType.v(className);
            String attributeName = attribute.getName(context);
            String fieldName = getFieldNameForAttribute(attribute, context);

            Local local;

            if (objectNameToCreatorName.keySet().contains(
                    attribute.getFullName())) {
                //     System.out.println("already has " + attributeName);
                // If the class for the object already creates the
View Full Code Here

            EntitySootClass theClass, HashMap objectNameToCreatorName) {
        //Entity classObject = (Entity) _findDeferredInstance(entity);

        // This local is used to store the return from the getPort
        // method, before it is stored in a type-specific local variable.
        Local tempPortLocal = Jimple.v().newLocal("tempPort",
                RefType.v(PtolemyUtilities.componentPortClass));
        body.getLocals().add(tempPortLocal);

        for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
            Port port = (Port) ports.next();

            //   System.out.println("ModelTransformer: port: " + port);
            String className = port.getClass().getName();

            // FIXME: what about subclasses of TypedIOPort?
            //String portName = port.getName(context);
            String fieldName = getFieldNameForPort(port, context);
            RefType portType = RefType.v(className);
            Local portLocal = Jimple.v().newLocal("port", portType);
            body.getLocals().add(portLocal);

            // Deal with ParameterPorts specially, since they are
            // created by the PortParameter.  Just use the
            // portParameter to get a reference to the ParameterPort.
            if (port instanceof ParameterPort) {
                updateCreatedSet(entity.getFullName() + "." + port.getName(),
                        port, port, objectNameToCreatorName);

                PortParameter parameter = ((ParameterPort) port).getParameter();
                Local parameterLocal = Jimple.v().newLocal("parameter",
                        RefType.v(PtolemyUtilities.portParameterClass));
                body.getLocals().add(parameterLocal);
                body.getUnits().add(
                        Jimple.v().newAssignStmt(
                                parameterLocal,
                                Jimple.v().newVirtualInvokeExpr(
                                        contextLocal,
                                        PtolemyUtilities.getAttributeMethod
                                                .makeRef(),
                                        StringConstant.v(parameter
                                                .getName(context)))));

                // If the class for the object already creates the
                // port, then get a reference to the existing port.
                // First assign to temp
                body
                        .getUnits()
                        .add(
                                Jimple
                                        .v()
                                        .newAssignStmt(
                                                portLocal,
                                                Jimple
                                                        .v()
                                                        .newVirtualInvokeExpr(
                                                                parameterLocal,
                                                                PtolemyUtilities.portParameterGetPortMethod
                                                                        .makeRef())));
            } else if (objectNameToCreatorName.keySet().contains(
                    port.getFullName())) {
                //       System.out.println("already created!");
                // If the class for the object already creates the
                // port, then get a reference to the existing port.
                // First assign to temp
                body.getUnits().add(
                        Jimple.v().newAssignStmt(
                                tempPortLocal,
                                Jimple.v().newVirtualInvokeExpr(
                                        entityLocal,
                                        PtolemyUtilities.getPortMethod
                                                .makeRef(),
                                        StringConstant.v(port.getName()))));

                // and then cast to portLocal
                body.getUnits().add(
                        Jimple.v()
                                .newAssignStmt(
                                        portLocal,
                                        Jimple.v().newCastExpr(tempPortLocal,
                                                portType)));
            } else {
                //     System.out.println("Creating new!");
                // If the class does not create the port
                // then create a new port with the right name.
                Local local = PtolemyUtilities.createNamedObjAndLocal(body,
                        className, entityLocal, port.getName());

                // Record the name of the created port.
                // NOTE: we assume that this is only a TypedIOPort, which
                // contains no other objects!
                //    Port classPort =
                //                     (Port)_findDeferredInstance(port);
                //      updateCreatedSet(entity.getFullName() + "."
                //                         + port.getName(),
                //                         classPort, classPort, objectNameToCreatorName);
                String name = entity.getFullName() + "." + port.getName();
                objectNameToCreatorName.put(name, name);

                // Then assign to portLocal.
                body.getUnits().add(Jimple.v().newAssignStmt(portLocal, local));
            }

            if (port instanceof TypedIOPort) {
                TypedIOPort ioport = (TypedIOPort) port;
                Local ioportLocal = Jimple.v().newLocal(
                        "typed_" + port.getName(), PtolemyUtilities.ioportType);
                body.getLocals().add(ioportLocal);

                Stmt castStmt = Jimple.v().newAssignStmt(
                        ioportLocal,
                        Jimple.v().newCastExpr(portLocal,
                                PtolemyUtilities.ioportType));
                body.getUnits().add(castStmt);

                if (ioport.isInput()) {
                    body.getUnits().add(
                            Jimple.v().newInvokeStmt(
                                    Jimple.v().newVirtualInvokeExpr(
                                            ioportLocal,
                                            PtolemyUtilities.setInputMethod
                                                    .makeRef(),
                                            IntConstant.v(1))));
                }

                if (ioport.isOutput()) {
                    body.getUnits().add(
                            Jimple.v().newInvokeStmt(
                                    Jimple.v().newVirtualInvokeExpr(
                                            ioportLocal,
                                            PtolemyUtilities.setOutputMethod
                                                    .makeRef(),
                                            IntConstant.v(1))));
                }

                if (ioport.isMultiport()) {
                    body.getUnits().add(
                            Jimple.v().newInvokeStmt(
                                    Jimple.v().newVirtualInvokeExpr(
                                            ioportLocal,
                                            PtolemyUtilities.setMultiportMethod
                                                    .makeRef(),
                                            IntConstant.v(1))));
                }

                // Set the port's type.
                Local typeLocal = PtolemyUtilities.buildConstantTypeLocal(body,
                        castStmt, ioport.getType());
                body.getUnits().add(
                        Jimple.v().newInvokeStmt(
                                Jimple.v().newVirtualInvokeExpr(
                                        ioportLocal,
View Full Code Here

            Stmt insertPoint = Jimple.v().newReturnVoidStmt();
            body.getUnits().add(insertPoint);

            if (_constAnalysis.getConstVariables(namedObj).contains(attribute)) {
                Local local = SootUtilities.createRuntimeException(body,
                        insertPoint,
                        "Parameter is constant and should not be re-evaluated");
                body.getUnits().insertBefore(Jimple.v().newThrowStmt(local),
                        insertPoint);
                continue;
            }

            // A local that we will use to set the value of our
            // settable attributes.
            Local attributeLocal = Jimple.v().newLocal("attribute",
                    PtolemyUtilities.attributeType);
            body.getLocals().add(attributeLocal);

            Local settableLocal = Jimple.v().newLocal("settable",
                    PtolemyUtilities.settableType);
            body.getLocals().add(settableLocal);

            //String className = attribute.getClass().getName();
            //Type attributeType = RefType.v(className);
            String attributeName = attribute.getName(context);
            //String fieldName = getFieldNameForAttribute(attribute, context);

            Local local = attributeLocal;
            body.getUnits().insertBefore(
                    Jimple.v().newAssignStmt(
                            attributeLocal,
                            Jimple.v().newVirtualInvokeExpr(
                                    body.getThisLocal(),
                                    PtolemyUtilities.getAttributeMethod
                                            .makeRef(),
                                    StringConstant.v(attributeName))),
                    insertPoint);

            if (attribute instanceof Variable) {
                // If the attribute is a parameter, then set its
                // token to the correct value.
                //                 Token token = null;
                //                 try {
                //                     token = ((Variable)attribute).getToken();
                //                 } catch (IllegalActionException ex) {
                //                     throw new RuntimeException(ex.getMessage());
                //                 }
                //                 if (token == null) {
                //                     throw new RuntimeException("Calling getToken() on '"
                //                             + attribute + "' returned null.  This may occur "
                //                             + "if an attribute has no value in the moml file");
                //                 }
                //                 Local tokenLocal =
                //                     PtolemyUtilities.buildConstantTokenLocal(body,
                //                             insertPoint, token, "token");
                Local tokenLocal = DataUtilities.generateExpressionCodeBefore(
                        (Entity) context, theClass, ((Variable) attribute)
                                .getExpression(), new HashMap(), new HashMap(),
                        body, insertPoint);

                Local variableLocal = Jimple.v().newLocal("variable",
                        variableType);
                body.getLocals().add(variableLocal);

                // cast to Variable.
                body.getUnits().insertBefore(
View Full Code Here

        Type variableType = RefType.v(PtolemyUtilities.variableClass);

        // A local that we will use to set the value of our
        // settable attributes.
        Local attributeLocal = Jimple.v().newLocal("attribute",
                PtolemyUtilities.attributeType);
        body.getLocals().add(attributeLocal);

        Local settableLocal = Jimple.v().newLocal("settable",
                PtolemyUtilities.settableType);
        body.getLocals().add(settableLocal);

        // A list of locals that we will validate.
        List validateLocalsList = new LinkedList();

        for (Iterator attributes = namedObj.attributeList().iterator(); attributes
                .hasNext();) {
            Attribute attribute = (Attribute) attributes.next();

            if (_isIgnorableAttribute(attribute)) {
                continue;
            }

            //String className = attribute.getClass().getName();
            //Type attributeType = RefType.v(className);
            String attributeName = attribute.getName(context);
            //String fieldName = getFieldNameForAttribute(attribute, context);

            Local local = attributeLocal;
            body.getUnits().insertBefore(
                    Jimple.v().newAssignStmt(
                            attributeLocal,
                            Jimple.v().newVirtualInvokeExpr(
                                    contextLocal,
                                    PtolemyUtilities.getAttributeMethod
                                            .makeRef(),
                                    StringConstant.v(attributeName))),
                    insertPoint);

            if (attribute instanceof Variable) {
                // If the attribute is a parameter, then set its
                // token to the correct value.
                Token token = null;

                try {
                    token = ((Variable) attribute).getToken();
                } catch (IllegalActionException ex) {
                    throw new RuntimeException(ex.getMessage());
                }

                if (token == null) {
                    throw new RuntimeException("Calling getToken() on '"
                            + attribute + "' returned null.  This may occur "
                            + "if an attribute has no value in the moml file");
                }

                Local tokenLocal = PtolemyUtilities.buildConstantTokenLocal(
                        body, insertPoint, token, "token");

                Local variableLocal = Jimple.v().newLocal("variable",
                        variableType);
                body.getLocals().add(variableLocal);

                // cast to Variable.
                body.getUnits().insertBefore(
                        Jimple.v().newAssignStmt(variableLocal,
                                Jimple.v().newCastExpr(local, variableType)),
                        insertPoint);

                // call setToken.
                body.getUnits().insertBefore(
                        Jimple.v().newInvokeStmt(
                                Jimple.v().newVirtualInvokeExpr(
                                        variableLocal,
                                        PtolemyUtilities.variableSetTokenMethod
                                                .makeRef(), tokenLocal)),
                        insertPoint);

                // Store that we will call validate to ensure that
                // attributeChanged is called.
                validateLocalsList.add(variableLocal);
            } else if (attribute instanceof Settable) {
                // If the attribute is settable, then set its
                // expression.
                // cast to Settable.
                body.getUnits().insertBefore(
                        Jimple.v().newAssignStmt(settableLocal, local),
                        insertPoint);

                String expression = ((Settable) attribute).getExpression();

                // call setExpression.
                body.getUnits().insertBefore(
                        Jimple.v().newInvokeStmt(
                                Jimple.v().newInterfaceInvokeExpr(
                                        settableLocal,
                                        PtolemyUtilities.setExpressionMethod
                                                .makeRef(),
                                        StringConstant.v(expression))),
                        insertPoint);

                // call validate to ensure that attributeChanged is called.
                body.getUnits().insertBefore(
                        Jimple.v().newInvokeStmt(
                                Jimple.v().newInterfaceInvokeExpr(
                                        settableLocal,
                                        PtolemyUtilities.validateMethod
                                                .makeRef())), insertPoint);
            }

            // recurse so that we get all parameters deeply.
            initializeAttributesBefore(body, insertPoint, context,
                    contextLocal, attribute, local, theClass);
        }

        for (Iterator validateLocals = validateLocalsList.iterator(); validateLocals
                .hasNext();) {
            Local validateLocal = (Local) validateLocals.next();

            // Validate local params
            body.getUnits()
                    .insertBefore(
                            Jimple.v().newInvokeStmt(
                                    Jimple.v().newInterfaceInvokeExpr(
                                            validateLocal,
                                            PtolemyUtilities.validateMethod
                                                    .makeRef())), insertPoint);
        }

        if (namedObj instanceof Entity) {
            Entity entity = (Entity) namedObj;

            for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
                Port port = (Port) ports.next();
                Local portLocal = Jimple.v().newLocal("port",
                        RefType.v(PtolemyUtilities.portClass));
                body.getLocals().add(portLocal);

                String portName = port.getName(context);
                body.getUnits().insertBefore(
View Full Code Here

            CompositeActor composite, EntitySootClass modelClass,
            HashMap objectNameToCreatorName, Map options) {
        //CompositeActor classObject = (CompositeActor) _findDeferredInstance(composite);

        // A local that we will use to get existing entities
        Local entityLocal = Jimple.v().newLocal("entity",
                PtolemyUtilities.componentEntityType);
        body.getLocals().add(entityLocal);

        for (Iterator entities = composite.deepEntityList().iterator(); entities
                .hasNext();) {
            Entity entity = (Entity) entities.next();

            // System.out.println("ModelTransformer: entity: " + entity);
            // If we are doing deep codegen, then use the actor
            // classes we created earlier.
            String className = getInstanceClassName(entity, options);
            String entityFieldName = getFieldNameForEntity(entity, container);
            Local local;

            if (objectNameToCreatorName.keySet().contains(entity.getFullName())) {
                //     System.out.println("already created!");
                local = Jimple.v().newLocal("entity",
                        PtolemyUtilities.componentEntityType);
View Full Code Here

            boolean createFieldsInClass) {
        //Entity classObject = (Entity) _findDeferredInstance(entity);

        // This local is used to store the return from the getPort
        // method, before it is stored in a type-specific local variable.
        Local tempPortLocal = Jimple.v().newLocal("tempPort",
                RefType.v(PtolemyUtilities.componentPortClass));
        body.getLocals().add(tempPortLocal);

        for (Iterator ports = entity.portList().iterator(); ports.hasNext();) {
            Port port = (Port) ports.next();

            //System.out.println("ModelTransformer: port: " + port);
            String className = port.getClass().getName();
            //String portName = port.getName(context);
            String fieldName = getFieldNameForPort(port, context);
            RefType portType = RefType.v(className);
            Local portLocal = Jimple.v().newLocal("port", portType);
            body.getLocals().add(portLocal);

            // Ignore ParameterPorts, since they are created by the
            // PortParameter.  Just use the portParameter to get a
            // reference to the ParameterPort.
            if (port instanceof ParameterPort) {
                updateCreatedSet(entity.getFullName() + "." + port.getName(),
                        port, port, objectNameToCreatorName);

                PortParameter parameter = ((ParameterPort) port).getParameter();
                Local parameterLocal = Jimple.v().newLocal("parameter",
                        RefType.v(PtolemyUtilities.portParameterClass));
                body.getLocals().add(parameterLocal);
                body.getUnits().add(
                        Jimple.v().newAssignStmt(
                                parameterLocal,
                                Jimple.v().newVirtualInvokeExpr(
                                        contextLocal,
                                        PtolemyUtilities.getAttributeMethod
                                                .makeRef(),
                                        StringConstant.v(parameter
                                                .getName(context)))));

                // If the class for the object already creates the
                // port, then get a reference to the existing port.
                // First assign to temp
                body
                        .getUnits()
                        .add(
                                Jimple
                                        .v()
                                        .newAssignStmt(
                                                portLocal,
                                                Jimple
                                                        .v()
                                                        .newVirtualInvokeExpr(
                                                                parameterLocal,
                                                                PtolemyUtilities.portParameterGetPortMethod
                                                                        .makeRef())));
            } else if (objectNameToCreatorName.keySet().contains(
                    port.getFullName())) {
                //    System.out.println("already created!");
                // If the class for the object already creates the
                // port, then get a reference to the existing port.
                // First assign to temp
                body.getUnits().add(
                        Jimple.v().newAssignStmt(
                                tempPortLocal,
                                Jimple.v().newVirtualInvokeExpr(
                                        entityLocal,
                                        PtolemyUtilities.getPortMethod
                                                .makeRef(),
                                        StringConstant.v(port.getName()))));

                // and then cast to portLocal
                body.getUnits().add(
                        Jimple.v()
                                .newAssignStmt(
                                        portLocal,
                                        Jimple.v().newCastExpr(tempPortLocal,
                                                portType)));
            } else {
                //    System.out.println("Creating new!");
                // If the class does not create the port
                // then create a new port with the right name.
                Local local = PtolemyUtilities.createNamedObjAndLocal(body,
                        className, entityLocal, port.getName());

                //                 updateCreatedSet(entity.getFullName() + "."
                //                         + port.getName(),
                //                         port, port, objectNameToCreatorName);
                String name = entity.getFullName() + "." + port.getName();
                objectNameToCreatorName.put(name, name);

                // Then assign to portLocal.
                body.getUnits().add(Jimple.v().newAssignStmt(portLocal, local));

                if (port instanceof TypedIOPort) {
                    TypedIOPort ioport = (TypedIOPort) port;

                    if (ioport.isInput()) {
                        body.getUnits().add(
                                Jimple.v().newInvokeStmt(
                                        Jimple.v().newVirtualInvokeExpr(
                                                local,
                                                PtolemyUtilities.setInputMethod
                                                        .makeRef(),
                                                IntConstant.v(1))));
                    }

                    if (ioport.isOutput()) {
                        body
                                .getUnits()
                                .add(
                                        Jimple
                                                .v()
                                                .newInvokeStmt(
                                                        Jimple
                                                                .v()
                                                                .newVirtualInvokeExpr(
                                                                        local,
                                                                        PtolemyUtilities.setOutputMethod
                                                                                .makeRef(),
                                                                        IntConstant
                                                                                .v(1))));
                    }

                    if (ioport.isMultiport()) {
                        body
                                .getUnits()
                                .add(
                                        Jimple
                                                .v()
                                                .newInvokeStmt(
                                                        Jimple
                                                                .v()
                                                                .newVirtualInvokeExpr(
                                                                        local,
                                                                        PtolemyUtilities.setMultiportMethod
                                                                                .makeRef(),
                                                                        IntConstant
                                                                                .v(1))));
                    }

                    // Set the port's type.
                    Local ioportLocal = Jimple.v().newLocal(
                            "typed_" + port.getName(),
                            PtolemyUtilities.ioportType);
                    body.getLocals().add(ioportLocal);

                    Stmt castStmt = Jimple.v().newAssignStmt(
                            ioportLocal,
                            Jimple.v().newCastExpr(local,
                                    PtolemyUtilities.ioportType));
                    body.getUnits().add(castStmt);

                    Local typeLocal = PtolemyUtilities.buildConstantTypeLocal(
                            body, castStmt, ioport.getType());
                    body.getUnits().add(
                            Jimple.v().newInvokeStmt(
                                    Jimple.v().newVirtualInvokeExpr(
                                            ioportLocal,
View Full Code Here

        ptolemy.data.type.Type type1;
        ptolemy.data.type.Type type2;

        if (expr.getMethod().equals(tokenTokenCompareMethod)) {
            Local tokenLocal1 = (Local) expr.getArg(0);
            Local tokenLocal2 = (Local) expr.getArg(1);
            type1 = getTypeOfBefore(tokenLocal1, unit);
            type2 = getTypeOfBefore(tokenLocal2, unit);
        } else if (expr.getMethod().equals(typeTokenCompareMethod)) {
            Local typeLocal = (Local) expr.getArg(0);
            Local tokenLocal = (Local) expr.getArg(1);
            type1 = PtolemyUtilities.getTypeValue(method, typeLocal, unit,
                    localDefs, localUses);
            type2 = getTypeOfBefore(tokenLocal, unit);
        } else if (expr.getMethod().equals(tokenTypeCompareMethod)) {
            Local tokenLocal = (Local) expr.getArg(0);
            Local typeLocal = (Local) expr.getArg(1);
            type1 = getTypeOfBefore(tokenLocal, unit);
            type2 = PtolemyUtilities.getTypeValue(method, typeLocal, unit,
                    localDefs, localUses);
        } else if (expr.getMethod().equals(typeTypeCompareMethod)) {
            Local typeLocal1 = (Local) expr.getArg(0);
            Local typeLocal2 = (Local) expr.getArg(1);
            type1 = PtolemyUtilities.getTypeValue(method, typeLocal1, unit,
                    localDefs, localUses);
            type2 = PtolemyUtilities.getTypeValue(method, typeLocal2, unit,
                    localDefs, localUses);
        } else {
View Full Code Here

TOP

Related Classes of soot.Local

Copyright © 2018 www.massapicom. 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.