类 Yylex
- java.lang.Object
-
- com.alibaba.dubbo.common.json.Yylex
-
@Deprecated public class Yylex extends Object
已过时。This class is a scanner generated by JFlex 1.4.3 on 7/3/10 3:12 AM from the specification file /Users/qianlei/dev/proj/dubbo-1.1/dubbo.common/src/main/java/com/alibaba/dubbo/common/json/json.flex
-
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
yybegin(int newState)
已过时。Enters a new lexical statechar
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.
-
-
-
方法详细资料
-
yyclose
public final void yyclose() throws IOException
已过时。Closes the input stream.- 抛出:
IOException
-
yyreset
public final void yyreset(Reader reader)
已过时。Resets the scanner to read from a new input stream. Does not close the old 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 stream
-
yystate
public final int yystate()
已过时。Returns the current lexical state.
-
yybegin
public final void yybegin(int newState)
已过时。Enters a new lexical state- 参数:
newState
- the new lexical state
-
yytext
public final String yytext()
已过时。Returns the text matched by the current regular expression.
-
yycharat
public final char yycharat(int pos)
已过时。Returns the character at position pos from the matched text.It is equivalent to yytext().charAt(pos), but faster
- 参数:
pos
- the position of the character to fetch. A value from 0 to yylength()-1.- 返回:
- the character at position pos
-
yylength
public final int yylength()
已过时。Returns the length of the matched text region.
-
yypushback
public void yypushback(int number)
已过时。Pushes the specified amount of characters back into the input stream.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()!
-
yylex
public JSONToken yylex() throws IOException, ParseException
已过时。Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.- 返回:
- the next token
- 抛出:
IOException
- if any I/O-Error occursParseException
-
-