Examples of AVariableDeclaration


Examples of org.andromda.translation.ocl.node.AVariableDeclaration

            AColonFeatureCallParameterOption featureCallParameterOption0 = (AColonFeatureCallParameterOption)parameterOption[0];
            AIterateFeatureCallParameterOption featureCallParameterOption1 = (AIterateFeatureCallParameterOption)parameterOption[1];
            ABarFeatureCallParameterOption featureCallParameterOption2 = (ABarFeatureCallParameterOption)parameterOption[2];

            AVariableDeclaration iterator = new AVariableDeclaration(getName(expression),
                    featureCallParameterOption0.getTypeDeclaration());
            iteratorDeclarator.setIterator(iterator);
            iteratorDeclarator.setSemicolon(featureCallParameterOption1.getSemicolon());

            AVariableDeclaration accumulator = new AVariableDeclaration(featureCallParameterOption1.getName(),
                    featureCallParameterOption1.getTypeDeclaration());
            iteratorDeclarator.setAccumulator(accumulator);

            AEqualExpression equalExpression = new AEqualExpression(featureCallParameterOption1.getEqual(),
                    featureCallParameterOption1.getExpression());
View Full Code Here

Examples of org.andromda.translation.ocl.node.AVariableDeclaration

                    ACommaFeatureCallParameterOption name = (ACommaFeatureCallParameterOption)this.orderedNames.get(
                            ctr);

                    ATypeDeclaration typeDecl = (ATypeDeclaration)this.namesAndTypes.get(name);

                    AVariableDeclaration variableDeclaration = new AVariableDeclaration(getName(name.getExpression()),
                            typeDecl);

                    variableDeclarationListTails.add(new AVariableDeclarationListTail(name.getComma(),
                            variableDeclaration, null));
                }
            }

            AVariableDeclarationList list = new AVariableDeclarationList(
                    new AVariableDeclaration(initialName, typeDeclaration), null, variableDeclarationListTails);
            return list;
        }
View Full Code Here

Examples of org.andromda.translation.ocl.node.AVariableDeclaration

    protected static VariableDeclaration newVariableDeclaration(PVariableDeclaration variableDeclaration,
                                                                PEqualExpression initialValue)
    {
        ExceptionUtils.checkNull("variableDeclaration", variableDeclaration);

        AVariableDeclaration declaration = (AVariableDeclaration)variableDeclaration;
        ATypeDeclaration typeDeclaration = (ATypeDeclaration)declaration.getTypeDeclaration();
        String type = null;
        String name = ObjectUtils.toString(declaration.getName()).trim();
        if (typeDeclaration != null)
        {
            type = ObjectUtils.toString(typeDeclaration.getType());
        }
        return new VariableDeclarationImpl(name, type, ObjectUtils.toString(initialValue).trim());
View Full Code Here

Examples of org.andromda.translation.ocl.node.AVariableDeclaration

    public void inALetVariableDeclaration(ALetVariableDeclaration node)
    {
        newTranslationLayer(); // this layer will be disposed later on, we do
        // not write variable declarations

        AVariableDeclaration variableDeclaration = (AVariableDeclaration)node.getVariableDeclaration();
        String variableName = variableDeclaration.getName().getText();

        newTranslationLayer();
        node.getExpression().apply(this);

        String variableValue = translationLayers.pop().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.