Package ariba.util.fieldtype

Examples of ariba.util.fieldtype.ContainerTypeInfo


                return;
            }

            // Get the element type of the container.   The element type is
            // the root type of the sub-expression in the projection.
            ContainerTypeInfo containerType = (ContainerTypeInfo)getCurrentTypeInfo();
            TypeInfo elementType = containerType.getElementType();
            beginLexicalScope(elementType, node);

            try {
                // Iterate through the children.
                int numOfChild = node.jjtGetNumChildren();
View Full Code Here


        // selects the all elements in the projection list that satisifes
        // this condition.  The result of "FindAll" is ContainerTypeInfo whose
        // element type is the element type of the project list.
        if (elementType != null) {
            TypeInfo listType = getTypeInfo("java.util.ArrayList");
            ContainerTypeInfo containerType =
                new ContainerTypeInfo(listType, elementType);
            addSemanticRecordToNode(node, containerType, null,
                    Symbol.ProjectionFindAll, getFullPath(node));
        }
    }
View Full Code Here

            // Find out the result type of the expression
            SemanticRecord record = getSemanticRecordForNode(expr);
            TypeInfo elementType = (record != null ? record.getTypeInfo() : null);
            TypeInfo listType = getTypeInfo("java.util.ArrayList");
            if (elementType != null) {
                ContainerTypeInfo containerType =
                    new ContainerTypeInfo(listType, elementType);
                addSemanticRecordToNode(node, containerType, null,
                        Symbol.ProjectionCollect, getFullPath(node));
            }
        }
    }
View Full Code Here

            // If we do not know the element type, then see if the list
            // contains the element type.
            if (elementType == null) {
                // Get the element type of the container.   The element type is
                // the root type of the child node in the parse tree.
                ContainerTypeInfo containerType = (ContainerTypeInfo)getCurrentTypeInfo();
                elementType = containerType.getElementType();
            }

            addSemanticRecordToNode(node, elementType);
        }
        finally {
View Full Code Here

    protected void doVisit (ASTList node)
    {
        printVisitNode(node);
        try {
            TypeInfo childInfo = checkCompatibleOperands(node, false);
            ContainerTypeInfo listInfo =
                (ContainerTypeInfo)getTypeInfo(node, List.class.getName());
            if (childInfo != null) {
                listInfo.setElementTypeInfo(childInfo);
            }

            addSemanticRecordToNode(node, listInfo);
            // register this node as a constant
            _constants.add(node);
View Full Code Here

TOP

Related Classes of ariba.util.fieldtype.ContainerTypeInfo

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.