public class TokenStream.CaseInsensitiveTokenFactory extends TokenStream.TokenFactory
tokens| Constructor and Description |
|---|
TokenStream.CaseInsensitiveTokenFactory() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addToken, addToken, getTokenspublic TokenStream.CaseInsensitiveTokenFactory()
public void addToken(Position position, int startIndex, int endIndex, int type)
position - 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 tokenTokenStream.Tokens.addToken(Position,int, int, int)Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.