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 |
counter
Counter for the special predefined
__COUNTER__ macro. |
(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 |
isCFile
Whether the file came from the C-include path
|
(package private) boolean |
raw
Set to true to disable temporarily the preprocessor.
|
Constructor and Description |
---|
TokenIndexer(InfoMap infoMap,
Token[] array,
boolean isCFile) |
Modifier and Type | Method and Description |
---|---|
(package private) Token[] |
expand(Token[] array,
int index) |
(package private) Token[] |
filter(Token[] array,
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
final boolean isCFile
int counter
__COUNTER__
macro.Copyright © 2020. All rights reserved.