mondrian.parser
Class MdxParserImpl

java.lang.Object
  extended by mondrian.parser.MdxParserImpl
All Implemented Interfaces:
MdxParserImplConstants

public class MdxParserImpl
extends Object
implements MdxParserImplConstants

MDX parser, generated from MdxParser.jj.

The public wrapper for this parser is JavaccParserValidatorImpl.

Since:
Dec 14, 2010
Author:
jhyde

Nested Class Summary
(package private) static class MdxParserImpl.JJCalls
           
 
Field Summary
(package private)  SimpleCharStream jj_input_stream
           
 Token jj_nt
          Next token.
 Token token
          Current token.
 MdxParserImplTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface mondrian.parser.MdxParserImplConstants
AMP_QUOTED_ID, AND, APPROX_NUMERIC_LITERAL, AS, ASTERISK, AXIS, BANG, CASE, CAST, CELL, CHAPTERS, COLON, COLUMNS, COMMA, CONCAT, DECIMAL_NUMERIC_LITERAL, DEFAULT, DIGIT, DIMENSION, DOT, DOUBLE_QUOTED_STRING, DRILLTHROUGH, ELSE, EMPTY, END, EOF, EQ, EXPLAIN, EXPONENT, FIRSTROWSET, FOR, FORMAL_COMMENT, FROM, GE, GT, ID, IN, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, IS, LBRACE, LE, LETTER, LPAREN, LT, MATCHES, MAXROWS, MEMBER, MINUS, MULTI_LINE_COMMENT, NE, NON, NOT, NULL, ON, OR, PAGES, PLAN, PLUS, PROPERTIES, QUOTED_ID, RBRACE, RETURN, ROWS, RPAREN, SECTIONS, SELECT, SET, SINGLE_LINE_COMMENT, SINGLE_QUOTED_STRING, SOLIDUS, THEN, tokenImage, UNSIGNED_INTEGER_LITERAL, WHEN, WHERE, WHITESPACE, WITH, XOR
 
Constructor Summary
MdxParserImpl(InputStream stream)
          Constructor with InputStream.
MdxParserImpl(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
MdxParserImpl(MdxParserImplTokenManager tm)
          Constructor with generated Token Manager.
MdxParserImpl(MdxParserValidator.QueryPartFactory factory, Statement statement, String queryString, boolean debug, FunTable funTable, boolean strictValidation)
           
MdxParserImpl(Reader stream)
          Constructor.
 
Method Summary
 Exp atom()
           
 QueryAxis axisSpecification()
           
 Exp caseExpression()
           
 Id compoundId()
           
 void disable_tracing()
          Disable tracing.
 QueryPart drillthroughStatement()
           
 void enable_tracing()
          Enable tracing.
 QueryPart explainStatement()
           
 List<Exp> expList()
           
 List<Exp> expOrEmptyList()
           
 Exp expression()
           
 Exp expressionEof()
           
 Exp expressionOrEmpty()
           
 Exp factor()
           
 Exp formulaExpression()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 Id.Segment identifier()
           
 String keyword()
           
 MemberProperty memberPropertyDefinition()
           
 Formula memberSpecification()
           
 Literal numericLiteral()
           
 Exp primary()
           
(package private)  Exp recursivelyParseExp(String s)
           
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(MdxParserImplTokenManager tm)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 Id returnItem()
           
 List<Exp> returnItemList()
           
 Exp segmentOrFuncall(Exp left)
           
 QueryPart selectOrDrillthroughStatement()
           
 Query selectStatement()
           
 Formula setSpecification()
           
 void setTabSize(int tabSize)
           
 QueryPart statement()
           
 QueryPart statementEof()
           
 Exp term()
           
 Exp term2()
           
 Exp term3()
           
 Exp term4()
           
 Exp term5()
           
(package private) static Exp[] toExpArray(List<Exp> expList)
           
(package private) static Formula[] toFormulaArray(List<Formula> formulaList)
           
(package private) static Id[] toIdArray(List<Id> idList)
           
(package private) static MemberProperty[] toMemberPropertyArray(List<MemberProperty> mpList)
           
(package private) static QueryAxis[] toQueryAxisArray(List<QueryAxis> qpList)
           
(package private) static QueryPart[] toQueryPartArray(List<QueryPart> qpList)
           
 Exp unaliasedExpression()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public MdxParserImplTokenManager token_source
Generated Token Manager.


jj_input_stream

SimpleCharStream jj_input_stream

token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

MdxParserImpl

public MdxParserImpl(MdxParserValidator.QueryPartFactory factory,
                     Statement statement,
                     String queryString,
                     boolean debug,
                     FunTable funTable,
                     boolean strictValidation)

MdxParserImpl

public MdxParserImpl(InputStream stream)
Constructor with InputStream.


MdxParserImpl

public MdxParserImpl(InputStream stream,
                     String encoding)
Constructor with InputStream and supplied encoding


MdxParserImpl

public MdxParserImpl(Reader stream)
Constructor.


MdxParserImpl

public MdxParserImpl(MdxParserImplTokenManager tm)
Constructor with generated Token Manager.

Method Detail

setTabSize

public void setTabSize(int tabSize)

recursivelyParseExp

Exp recursivelyParseExp(String s)
                  throws ParseException
Throws:
ParseException

toIdArray

static Id[] toIdArray(List<Id> idList)

toExpArray

static Exp[] toExpArray(List<Exp> expList)

toFormulaArray

static Formula[] toFormulaArray(List<Formula> formulaList)

toMemberPropertyArray

static MemberProperty[] toMemberPropertyArray(List<MemberProperty> mpList)

toQueryPartArray

static QueryPart[] toQueryPartArray(List<QueryPart> qpList)

toQueryAxisArray

static QueryAxis[] toQueryAxisArray(List<QueryAxis> qpList)

statementEof

public final QueryPart statementEof()
                             throws ParseException
Throws:
ParseException

expressionEof

public final Exp expressionEof()
                        throws ParseException
Throws:
ParseException

identifier

public final Id.Segment identifier()
                            throws ParseException
Throws:
ParseException

keyword

public final String keyword()
                     throws ParseException
Throws:
ParseException

compoundId

public final Id compoundId()
                    throws ParseException
Throws:
ParseException

unaliasedExpression

public final Exp unaliasedExpression()
                              throws ParseException
Throws:
ParseException

term5

public final Exp term5()
                throws ParseException
Throws:
ParseException

term4

public final Exp term4()
                throws ParseException
Throws:
ParseException

term3

public final Exp term3()
                throws ParseException
Throws:
ParseException

term2

public final Exp term2()
                throws ParseException
Throws:
ParseException

term

public final Exp term()
               throws ParseException
Throws:
ParseException

factor

public final Exp factor()
                 throws ParseException
Throws:
ParseException

primary

public final Exp primary()
                  throws ParseException
Throws:
ParseException

segmentOrFuncall

public final Exp segmentOrFuncall(Exp left)
                           throws ParseException
Throws:
ParseException

numericLiteral

public final Literal numericLiteral()
                             throws ParseException
Throws:
ParseException

atom

public final Exp atom()
               throws ParseException
Throws:
ParseException

caseExpression

public final Exp caseExpression()
                         throws ParseException
Throws:
ParseException

expression

public final Exp expression()
                     throws ParseException
Throws:
ParseException

expressionOrEmpty

public final Exp expressionOrEmpty()
                            throws ParseException
Throws:
ParseException

expOrEmptyList

public final List<Exp> expOrEmptyList()
                               throws ParseException
Throws:
ParseException

expList

public final List<Exp> expList()
                        throws ParseException
Throws:
ParseException

statement

public final QueryPart statement()
                          throws ParseException
Throws:
ParseException

selectOrDrillthroughStatement

public final QueryPart selectOrDrillthroughStatement()
                                              throws ParseException
Throws:
ParseException

selectStatement

public final Query selectStatement()
                            throws ParseException
Throws:
ParseException

memberSpecification

public final Formula memberSpecification()
                                  throws ParseException
Throws:
ParseException

formulaExpression

public final Exp formulaExpression()
                            throws ParseException
Throws:
ParseException

memberPropertyDefinition

public final MemberProperty memberPropertyDefinition()
                                              throws ParseException
Throws:
ParseException

setSpecification

public final Formula setSpecification()
                               throws ParseException
Throws:
ParseException

axisSpecification

public final QueryAxis axisSpecification()
                                  throws ParseException
Throws:
ParseException

drillthroughStatement

public final QueryPart drillthroughStatement()
                                      throws ParseException
Throws:
ParseException

returnItemList

public final List<Exp> returnItemList()
                               throws ParseException
Throws:
ParseException

returnItem

public final Id returnItem()
                    throws ParseException
Throws:
ParseException

explainStatement

public final QueryPart explainStatement()
                                 throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(MdxParserImplTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.


Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads