Package mondrian.parser
Class MdxParserImpl
- java.lang.Object
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description 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, AMP_UNQUOTED_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, EXISTING, 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
Constructors Constructor Description MdxParserImpl(InputStream stream)
Constructor with InputStream.MdxParserImpl(InputStream stream, String encoding)
Constructor with InputStream and supplied encodingMdxParserImpl(Reader stream)
Constructor.MdxParserImpl(MdxParserImplTokenManager tm)
Constructor with generated Token Manager.MdxParserImpl(MdxParserValidator.QueryPartFactory factory, Statement statement, String queryString, boolean debug, FunTable funTable, boolean strictValidation)
-
Method Summary
-
-
-
Field Detail
-
token_source
public MdxParserImplTokenManager token_source
Generated Token Manager.
-
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)
-
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
-
nameSegment
public final Id.NameSegment nameSegment() throws ParseException
- Throws:
ParseException
-
keyIdentifier
public final Id.KeySegment keyIdentifier() throws ParseException
- Throws:
ParseException
-
ampId
public final Id.NameSegment ampId() 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.
-
-