Examples of AOperation


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
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.