Package mondrian.olap
Class ParserTest.TestParser
- java.lang.Object
-
- java_cup.runtime.lr_parser
-
- mondrian.olap.Parser
-
- mondrian.olap.ParserTest.TestParser
-
- All Implemented Interfaces:
MdxParserValidator.QueryPartFactory
- Enclosing class:
- ParserTest
public static class ParserTest.TestParser extends Parser implements MdxParserValidator.QueryPartFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.olap.Parser
Parser.CUP$Parser$actions, Parser.FactoryImpl
-
-
Field Summary
-
Fields inherited from class mondrian.olap.Parser
_action_table, _production_table, _reduce_table, action_obj, factory, statement, strictValidation
-
-
Constructor Summary
Constructors Constructor Description TestParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryAxis[]
getAxes()
QueryPart[]
getCellProps()
String
getCube()
Formula[]
getFormulas()
Exp
getSlicer()
DrillThrough
makeDrillThrough(Query query, int maxRowCount, int firstRowOrdinal, List<Exp> returnList)
Creates aDrillThrough
object.Explain
makeExplain(QueryPart query)
Creates anExplain
object.Query
makeQuery(Statement statement, Formula[] formulae, QueryAxis[] axes, String cube, Exp slicer, QueryPart[] cellProps, boolean strictValidation)
Creates aQuery
object.QueryPart
parseInternal(Statement statement, String queryString, boolean debug, FunTable funTable, boolean strictValidation)
void
setAxes(QueryAxis[] axes)
void
setCellProps(QueryPart[] cellProps)
void
setCube(String cube)
void
setFormulas(Formula[] formulas)
void
setSlicer(Exp slicer)
String
toMdxString()
Converts this query to a string.-
Methods inherited from class mondrian.olap.Parser
action_table, do_action, EOF_sym, error_sym, getSymbolContainer, init_actions, isFunCall, parseExpression, parseInternal, production_table, recursivelyParseExp, reduce_table, report_error, report_fatal_error, scan, start_production, start_state, syntax_error, toExpArray, toFormulaArray, toIdArray, toMemberPropertyArray, toQueryAxisArray, toQueryPartArray, unrecovered_syntax_error, user_init
-
Methods inherited from class java_cup.runtime.lr_parser
advance_lookahead, cur_err_token, debug_message, debug_parse, debug_reduce, debug_shift, debug_stack, done_parsing, dump_stack, error_recovery, error_sync_size, expected_token_ids, find_recovery_config, get_action, get_reduce, getScanner, getSymbolFactory, parse, parse_lookahead, read_lookahead, report_expected_token_ids, restart_lookahead, setScanner, shift_under_error, symbl_name_from_id, try_parse_ahead, unpackFromStrings
-
-
-
-
Method Detail
-
parseInternal
public QueryPart parseInternal(Statement statement, String queryString, boolean debug, FunTable funTable, boolean strictValidation)
-
makeQuery
public Query makeQuery(Statement statement, Formula[] formulae, QueryAxis[] axes, String cube, Exp slicer, QueryPart[] cellProps, boolean strictValidation)
Description copied from interface:MdxParserValidator.QueryPartFactory
Creates aQuery
object. Override this function to make your kind of query.- Specified by:
makeQuery
in interfaceMdxParserValidator.QueryPartFactory
-
makeDrillThrough
public DrillThrough makeDrillThrough(Query query, int maxRowCount, int firstRowOrdinal, List<Exp> returnList)
Description copied from interface:MdxParserValidator.QueryPartFactory
Creates aDrillThrough
object.- Specified by:
makeDrillThrough
in interfaceMdxParserValidator.QueryPartFactory
-
makeExplain
public Explain makeExplain(QueryPart query)
Description copied from interface:MdxParserValidator.QueryPartFactory
Creates anExplain
object.- Specified by:
makeExplain
in interfaceMdxParserValidator.QueryPartFactory
-
getAxes
public QueryAxis[] getAxes()
-
setAxes
public void setAxes(QueryAxis[] axes)
-
getCellProps
public QueryPart[] getCellProps()
-
setCellProps
public void setCellProps(QueryPart[] cellProps)
-
getCube
public String getCube()
-
setCube
public void setCube(String cube)
-
getFormulas
public Formula[] getFormulas()
-
setFormulas
public void setFormulas(Formula[] formulas)
-
getSlicer
public Exp getSlicer()
-
setSlicer
public void setSlicer(Exp slicer)
-
toMdxString
public String toMdxString()
Converts this query to a string.- Returns:
- This query converted to a string
-
-