@Deprecated public class Yylex extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STR1
Deprecated.
|
static int |
STR2
Deprecated.
lexical states
|
static int |
YYEOF
Deprecated.
This character denotes the end of file
|
static int |
YYINITIAL
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
yybegin(int newState)
Deprecated.
Enters a new lexical state
|
char |
yycharat(int pos)
Deprecated.
Returns the character at position pos from the
matched text.
|
void |
yyclose()
Deprecated.
Closes the input stream.
|
int |
yylength()
Deprecated.
Returns the length of the matched text region.
|
JSONToken |
yylex()
Deprecated.
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)
Deprecated.
Pushes the specified amount of characters back into the input stream.
|
void |
yyreset(Reader reader)
Deprecated.
Resets the scanner to read from a new input stream.
|
int |
yystate()
Deprecated.
Returns the current lexical state.
|
String |
yytext()
Deprecated.
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 Dubbo Project. All rights reserved.