Package mondrian.olap
Class Scanner
- java.lang.Object
-
- mondrian.olap.Scanner
-
- Direct Known Subclasses:
StringScanner
public class Scanner extends Object
Lexical analyzer for MDX.- Author:
- jhyde, 20 January, 1999
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getChar()
Read a character from input, returning -1 if end of input.static String[][]
getCommentDelimiters()
Returns the list of comment delimiters.static boolean
getNestedCommentsState()
Returns the current nested comments state.void
init()
Initialize the scannerString
lookupReserved(int i)
return the name of the reserved word whose token code is "i"java_cup.runtime.Symbol
next_token()
Recognizes and returns the next complete token.
-
-
-
Method Detail
-
getNestedCommentsState
public static boolean getNestedCommentsState()
Returns the current nested comments state.
-
getCommentDelimiters
public static String[][] getCommentDelimiters()
Returns the list of comment delimiters.
-
getChar
protected int getChar() throws IOException
Read a character from input, returning -1 if end of input.- Throws:
IOException
-
init
public void init() throws IOException
Initialize the scanner- Throws:
IOException
-
lookupReserved
public String lookupReserved(int i)
return the name of the reserved word whose token code is "i"
-
next_token
public java_cup.runtime.Symbol next_token() throws IOException
Recognizes and returns the next complete token.- Throws:
IOException
-
-