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[]arrayThe token of array, modified by the preprocessor as we go.(package private) intcounterCounter for the special predefined__COUNTER__macro.(package private) intindexThe current index, in the array of tokens.(package private) InfoMapinfoMapThe set ofInfoobjects to use during preprocessing.(package private) booleanisCFileWhether the file came from the C-include path(package private) booleanrawSet 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) Tokenget()Returnsget(0).(package private) Tokenget(int i)Returnsarray[index + i].(package private) Tokennext()Incrementsindexand returnsarray[index].(package private) intpreprocess(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()
Incrementsindexand returnsarray[index]. After preprocessing ifraw == false.
-
-