Package ariba.util.fieldvalue

Examples of ariba.util.fieldvalue.Expression


    {
        Node node = null;
        List errors = getErrorCollector(env, errorCollector);
        try {
            if (StringUtil.nullOrEmptyOrBlankString(stringRepresentation)) {
                return new Expression(null);
            }
            node = (Node)Expr.parseExpression (stringRepresentation);
        } catch (ExpressionSyntaxException e) {
            errors.add(e.toString());
        }

        return (ListUtil.nullOrEmptyList(errors) ? new Expression(node) : null);
    }
View Full Code Here


                                                 boolean exactMatch,
                                                 String stringRepresentation,
                                                 List errorCollector)
        throws ExpressionException
    {
        Expression expr = (Expression)parse(env,
                                            stringRepresentation,
                                            errorCollector);
        if (expr != null) {
            typeCheck(env, rootType, fieldName, expr, expectedType, containerType,
                      exactMatch, errorCollector);
            Node exprRootNode = expr.getRootNode();
            if (exprRootNode != null &&
                (exprRootNode.getTypeInfo() == null ||
                    exprRootNode.getTypeInfo() instanceof NullTypeInfo)) {
                TypeRetriever retriever = env.getTypeRetriever();
                TypeInfo typeInfo = (!StringUtil.nullOrEmptyOrBlankString(expectedType) ?
View Full Code Here

                            List errorCollector)
        throws ExpressionException
    {
        Assert.that(expression instanceof Expression,
                 "Expression is not compiled from Ariba expression language.");
        Expression aExpr = (Expression)expression;
        if (aExpr._exprNode != null) {
            SymbolTable table = TypeChecker.check(env, rootType, fieldName,
                expectedType, containerType, exactMatch, aExpr._exprNode, errorCollector);
            aExpr.setSymbolTable(table);
      }
    }
View Full Code Here

                                 boolean exactMatch,
                                 boolean skipForObjectType)
    {
        Assert.that(expression instanceof Expression,
                 "Expression is not compiled from Ariba expression language.");
        Expression aExpr = (Expression)expression;
        if (aExpr._exprNode != null) {
            TypeChecker.verifyReturnedType(env,
                aExpr._exprNode, expectedType, containerType, exactMatch,
                env.getErrorCollector(), skipForObjectType);
      }
View Full Code Here

TOP

Related Classes of ariba.util.fieldvalue.Expression

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.