mondrian.olap
Class ParserTest.TestParser

java.lang.Object
  extended by java_cup.runtime.lr_parser
      extended by mondrian.olap.Parser
          extended by 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.FactoryImpl
 
Field Summary
 
Fields inherited from class mondrian.olap.Parser
_action_table, _production_table, _reduce_table, action_obj, factory, statement, strictValidation
 
Fields inherited from class java_cup.runtime.lr_parser
_done_parsing, _error_sync_size, action_tab, cur_token, lookahead, lookahead_pos, production_tab, reduce_tab, stack, tos
 
Constructor Summary
ParserTest.TestParser()
           
 
Method Summary
 QueryAxis[] getAxes()
           
 QueryPart[] getCellProps()
           
 String getCube()
           
 Formula[] getFormulas()
           
 Exp getSlicer()
           
 DrillThrough makeDrillThrough(Query query, int maxRowCount, int firstRowOrdinal, List<Exp> returnList)
          Creates a DrillThrough object.
 Explain makeExplain(QueryPart query)
          Creates an Explain object.
 Query makeQuery(Statement statement, Formula[] formulae, QueryAxis[] axes, String cube, Exp slicer, QueryPart[] cellProps, boolean strictValidation)
          Creates a Query 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, 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, find_recovery_config, get_action, get_reduce, getScanner, parse_lookahead, parse, read_lookahead, restart_lookahead, setScanner, shift_under_error, try_parse_ahead, unpackFromStrings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserTest.TestParser

public ParserTest.TestParser()
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 a Query object. Override this function to make your kind of query.

Specified by:
makeQuery in interface MdxParserValidator.QueryPartFactory

makeDrillThrough

public DrillThrough makeDrillThrough(Query query,
                                     int maxRowCount,
                                     int firstRowOrdinal,
                                     List<Exp> returnList)
Description copied from interface: MdxParserValidator.QueryPartFactory
Creates a DrillThrough object.

Specified by:
makeDrillThrough in interface MdxParserValidator.QueryPartFactory

makeExplain

public Explain makeExplain(QueryPart query)
Description copied from interface: MdxParserValidator.QueryPartFactory
Creates an Explain object.

Specified by:
makeExplain in interface MdxParserValidator.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

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