Package org.andromda.translation.ocl.node

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


    {
        ExceptionUtils.checkNull("operation", operation);

        OperationDeclaration operationDeclaration = null;

        AOperation op = (AOperation)operation;

        ATypeDeclaration typeDeclaration = (ATypeDeclaration)op.getReturnTypeDeclaration();
        String returnType = null;
        if (typeDeclaration != null)
        {
            returnType = ObjectUtils.toString(typeDeclaration.getType());
        }

        operationDeclaration = new OperationDeclarationImpl(ObjectUtils.toString(op.getName()), returnType, ConcreteSyntaxUtils.getVariableDeclarations(
                operation));
        return operationDeclaration;
    }
View Full Code Here

TOP

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

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.