Package org.andromda.translation.ocl.node

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


        ARelationalExpression expression = (ARelationalExpression)relationalExpression;

        // set the left expression
        expressions[0] = TranslationUtils.trimToEmpty(expression.getAdditiveExpression());

        ARelationalExpressionTail expressionTail = (ARelationalExpressionTail)expression.getRelationalExpressionTail();

        // set the right expression
        expressions[1] = TranslationUtils.trimToEmpty(expressionTail.getAdditiveExpression());

        return expressions;
    }
View Full Code Here


    /*------------------------- Relational Expression Handler (=, <, >, >=, etc.) --------------------*/

    public void handleRelationalExpression(String translation, Object node)
    {
        ARelationalExpressionTail relationalExpressionTail = (ARelationalExpressionTail)node;

        String[] leftAndRightExpressions = ConcreteSyntaxUtils.getLeftAndRightExpressions(
                (PRelationalExpression)relationalExpressionTail.parent());
        String leftExpression = StringUtils.deleteWhitespace(leftAndRightExpressions[0]);
        String rightExpression = StringUtils.deleteWhitespace(leftAndRightExpressions[1]);
        if (leftExpression.matches(OCLPatterns.OPERATION_FEATURE_CALL))
        {
            leftExpression = "";
View Full Code Here

TOP

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

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.