类 Yylex


  • public class Yylex
    extends 
    已过时。
    This class is a scanner generated by 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
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      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  reader)
      已过时。
      Resets the scanner to read from a new input stream.
      int yystate()
      已过时。
      Returns the current lexical state.
      yytext()
      已过时。
      Returns the text matched by the current regular expression.
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 字段详细资料

      • YYEOF

        public static final int YYEOF
        已过时。
        This character denotes the end of file
        另请参阅:
        常量字段值
      • STR2

        public static final int STR2
        已过时。
        lexical states
        另请参阅:
        常量字段值
      • STR1

        public static final int STR1
        已过时。
        另请参阅:
        常量字段值
      • YYINITIAL

        public static final int YYINITIAL
        已过时。
        另请参阅:
        常量字段值
    • 方法详细资料

      • yyclose

        public final void yyclose()
                           throws 
        已过时。
        Closes the input stream.
        抛出:
      • yyreset

        public final void yyreset​( 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  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 ,
                               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
        抛出:
        - if any I/O-Error occurs
        ParseException