类的使用
bsh.Token

使用Token的程序包
程序包
说明
 
  • bshToken的使用

    声明为Tokenbsh中的字段
    修饰符和类型
    字段
    说明
    ParseException.currentToken
    This is the last token that has been consumed successfully.
    Parser.jj_nt
     
    Token.next
    A reference to the next regular (non-special) token from the input stream.
    This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.
    Parser.token
     
    返回Tokenbsh中的方法
    修饰符和类型
    方法
    说明
    final Token
    Parser.getNextToken()
     
    ParserTokenManager.getNextToken()
     
    final Token
    Parser.getToken(int index)
     
    protected Token
    ParserTokenManager.jjFillToken()
     
    static final Token
    Token.newToken(int ofKind)
    Returns a new Token object, by default.
    参数类型为Tokenbsh中的构造器
    限定符
    构造器
    说明
     
    ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal)
    This constructor is used by the method "generateParseException" in the generated parser.