public class Scanner extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected boolean | 
debug  | 
protected int | 
nextChar
single lookahead character 
 | 
| Modifier and Type | Method and 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 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. 
 | 
protected int nextChar
protected boolean debug
public static boolean getNestedCommentsState()
public static String[][] getCommentDelimiters()
protected int getChar()
               throws IOException
IOExceptionpublic void init()
          throws IOException
IOExceptionpublic String lookupReserved(int i)
public java_cup.runtime.Symbol next_token()
                                   throws IOException
IOExceptionCopyright © 2019 Hitachi Vantara. All rights reserved.