Package mondrian.parser

Examples of mondrian.parser.MdxParserValidator


        TestParser p = createParser();
        final QueryPart query;
        if (old) {
            query = p.parseInternal(null, mdx, false, funTable, false);
        } else {
            MdxParserValidator parser =
                new JavaccParserValidatorImpl(p);
            query =
                parser.parseInternal(
                    null, mdx, false, funTable, false);
        }
        if (!(query instanceof DrillThrough
            || query instanceof Explain))
        {
View Full Code Here


        final String mdx = wrapExpr(expr);
        final QueryPart query;
        if (old) {
            query = p.parseInternal(null, mdx, false, funTable, false);
        } else {
            MdxParserValidator parser =
                new JavaccParserValidatorImpl(p);
            query =
                parser.parseInternal(
                    null, mdx, false, funTable, false);
        }
        assertNull("Test parser should return null query", query);
        final String actual = Util.unparse(p.formulas[0].getExpression());
        TestContext.assertEqualsVerbose(expected, actual);
View Full Code Here

                Util.nl
                + expr);
        }
        final Statement statement = getInternalStatement();
        try {
            MdxParserValidator parser = createParser();
            final FunTable funTable = getSchema().getFunTable();
            return parser.parseExpression(statement, expr, debug, funTable);
        } catch (Throwable exception) {
            throw MondrianResource.instance().FailedToParseQuery.ex(
                expr,
                exception);
        }
View Full Code Here

TOP

Related Classes of mondrian.parser.MdxParserValidator

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.