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
Enclosing class:
ParserTest

public static class ParserTest.TestParser
extends Parser


Field Summary
 
Fields inherited from class mondrian.olap.Parser
_action_table, _production_table, _reduce_table, action_obj
 
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, symbolFactory, tos
 
Constructor Summary
ParserTest.TestParser()
           
 
Method Summary
 QueryAxis[] getAxes()
           
 QueryPart[] getCellProps()
           
 String getCube()
           
 Formula[] getFormulas()
           
 Exp getSlicer()
           
protected  Query makeQuery(Formula[] formulae, QueryAxis[] axes, String cube, Exp slicer, QueryPart[] cellProps)
          Creates a Query object.
 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, getSymbolFactory, 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

makeQuery

protected Query makeQuery(Formula[] formulae,
                          QueryAxis[] axes,
                          String cube,
                          Exp slicer,
                          QueryPart[] cellProps)
Description copied from class: Parser
Creates a Query object. Override this function to make your kind of query.

Overrides:
makeQuery in class Parser

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