Package org.bytedeco.javacpp.tools
Class TokenIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.tools.TokenIndexer
-
class TokenIndexer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 ofInfo
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 Summary
Constructors Constructor Description TokenIndexer(InfoMap infoMap, Token[] array, boolean isCFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Token[]
expand(Token[] array, int index, java.util.HashSet<java.lang.String> alreadyExpanded)
(package private) Token[]
filter(Token[] array, int index)
(package private) Token
get()
Returnsget(0)
.(package private) Token
get(int i)
Returnsarray[index + i]
.(package private) Token
next()
Incrementsindex
and returnsarray[index]
.(package private) int
preprocess(int index, int count)
-
-
-
Field Detail
-
raw
boolean raw
Set to true to disable temporarily the preprocessor.
-
array
Token[] array
The token of array, modified by the preprocessor as we go.
-
index
int index
-
isCFile
final boolean isCFile
Whether the file came from the C-include path
-
counter
int counter
Counter for the special predefined__COUNTER__
macro.
-
-
Method Detail
-
expand
Token[] expand(Token[] array, int index, java.util.HashSet<java.lang.String> alreadyExpanded)
-
preprocess
int preprocess(int index, int count)
-
get
Token get()
Returnsget(0)
.
-
get
Token get(int i)
Returnsarray[index + i]
. After preprocessing ifraw == false
.
-
next
Token next()
Incrementsindex
and returnsarray[index]
. After preprocessing ifraw == false
.
-
-