public class TokenStream.CaseSensitiveTokenFactory extends TokenStream.TokenFactory
TokenStream.Tokens that creates TokenStream.CaseSensitiveToken objects.tokens| 构造器和说明 |
|---|
CaseSensitiveTokenFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addToken(Position position,
int startIndex,
int endIndex,
int type)
Create a single- or multi-character token with the supplied type and with the characters
in the range given by the starting and ending index in the character stream.
|
getTokensclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddToken, addTokenpublic void addToken(Position position, int startIndex, int endIndex, int type)
TokenStream.Tokensposition - the position (line and column numbers) of this new token; may not be nullstartIndex - the index of the first character to appear in the token; must be a
valid index in the streamendIndex - the index just past the last character to appear in the token; must be a
valid index in the streamtype - the type of the tokenCopyright © 2025 The Apache Software Foundation. All rights reserved.