class TokenIndexer extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) Token[] |
array
The token of array, modified by the preprocessor as we go.
|
(package private) int |
index
The current index, in the array of tokens.
|
(package private) InfoMap |
infoMap
The set of
Info objects to use during preprocessing. |
(package private) boolean |
raw
Set to true to disable temporarily the preprocessor.
|
| Constructor and Description |
|---|
TokenIndexer(InfoMap infoMap,
Token[] array) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
expand(int index) |
(package private) void |
filter(int index) |
(package private) Token |
get()
Returns
get(0). |
(package private) Token |
get(int i)
Returns
array[index + i]. |
(package private) Token |
next()
Increments
index and returns array[index]. |
(package private) int |
preprocess(int index,
int count) |
boolean raw
Token[] array
int index
void filter(int index)
void expand(int index)
int preprocess(int index,
int count)
Token get()
get(0).Token get(int i)
array[index + i]. After preprocessing if raw == false.Token next()
index and returns array[index]. After preprocessing if raw == false.Copyright © 2015. All Rights Reserved.