|Constructor and Description|
|Modifier and Type||Method and Description|
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, getTokens
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 null
startIndex- the index of the first character to appear in the token; must be a valid index in the stream
endIndex- the index just past the last character to appear in the token; must be a valid index in the stream
type- the type of the token
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.