Package org.andromda.translation.ocl.node

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


            if (!this.orderedNames.isEmpty())
            {
                int orderedNameSize = orderedNames.size();
                for (int ctr = 1; ctr < orderedNameSize; ctr++)
                {
                    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(
View Full Code Here


                if (!(parameterOption[ctr] instanceof ACommaFeatureCallParameterOption))
                {
                    throw new OclParserException("parser error: declarator-less feature call paramaters must have the format " +
                            "\"( expr, ..., expr )\"");
                }
                ACommaFeatureCallParameterOption commaOption = (ACommaFeatureCallParameterOption)parameterOption[ctr];
                ACommaExpression commaExpression = new ACommaExpression(commaOption.getComma(),
                        commaOption.getExpression());
                paramList.add(commaExpression);
            }

            return new AFeatureCallParameters(featureCallParameters.getLParen(), null,
                    new AActualParameterList(expr, paramList), featureCallParameters.getRParen());
View Full Code Here

TOP

Related Classes of org.andromda.translation.ocl.node.ACommaFeatureCallParameterOption

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.