|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.Scanner
public class Scanner
Lexical analyzer for MDX.
| Field Summary | |
|---|---|
protected boolean |
debug
|
protected int |
nextChar
single lookahead character |
| Constructor Summary | |
|---|---|
Scanner(boolean debug)
Creates a Scanner. |
|
| Method Summary | |
|---|---|
protected int |
getChar()
Read a character from input, returning -1 if end of input. |
static String[][] |
getCommentDelimiters()
Returns the list of comment delimiters. |
(package private) void |
getLocation(java_cup.runtime.Symbol symbol,
int[] loc)
Deduces the line and column (0-based) of a symbol. |
static boolean |
getNestedCommentsState()
Returns the current nested comments state. |
void |
init()
Initialize the scanner |
String |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int nextChar
protected boolean debug
| Constructor Detail |
|---|
Scanner(boolean debug)
debug - Whether to emit debug messages.| Method Detail |
|---|
public static boolean getNestedCommentsState()
public static String[][] getCommentDelimiters()
protected int getChar()
throws IOException
IOException
public void init()
throws IOException
IOException
void getLocation(java_cup.runtime.Symbol symbol,
int[] loc)
Parser.syntax_error(java_cup.runtime.Symbol).
public String lookupReserved(int i)
public java_cup.runtime.Symbol next_token()
throws IOException
IOException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||