@Deprecated public class Yylex extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
STR1
已过时。
|
static int |
STR2
已过时。
lexical states
|
static int |
YYEOF
已过时。
This character denotes the end of file
|
static int |
YYINITIAL
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
yybegin(int newState)
已过时。
Enters a new lexical state
|
char |
yycharat(int pos)
已过时。
Returns the character at position pos from the
matched text.
|
void |
yyclose()
已过时。
Closes the input stream.
|
int |
yylength()
已过时。
Returns the length of the matched text region.
|
JSONToken |
yylex()
已过时。
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
void |
yypushback(int number)
已过时。
Pushes the specified amount of characters back into the input stream.
|
void |
yyreset(Reader reader)
已过时。
Resets the scanner to read from a new input stream.
|
int |
yystate()
已过时。
Returns the current lexical state.
|
String |
yytext()
已过时。
Returns the text matched by the current regular expression.
|
public static final int YYEOF
public static final int STR2
public static final int STR1
public static final int YYINITIAL
public final void yyclose()
throws IOException
IOExceptionpublic final void yyreset(Reader reader)
All internal variables are reset, the old input stream cannot be reused (internal buffer is discarded and lost). Lexical state is set to ZZ_INITIAL.
reader - the new input streampublic final int yystate()
public final void yybegin(int newState)
newState - the new lexical statepublic final String yytext()
public final char yycharat(int pos)
It is equivalent to yytext().charAt(pos), but faster
pos - the position of the character to fetch.
A value from 0 to yylength()-1.public final int yylength()
public void yypushback(int number)
They will be read again by then next call of the scanning method
number - the number of characters to be read again.
This number must not be greater than yylength()!public JSONToken yylex() throws IOException, ParseException
IOException - if any I/O-Error occursParseExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.