Package io.cucumber.cucumberexpressions
Class CucumberExpressionTokenizer.TokenIterator
java.lang.Object
io.cucumber.cucumberexpressions.CucumberExpressionTokenizer.TokenIterator
- Enclosing class:
CucumberExpressionTokenizer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringBuilderprivate intprivate final PrimitiveIterator.OfIntprivate @Nullable Token.Typeprivate intprivate final Stringprivate @Nullable Token.Typeprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate TokenconvertBufferToToken(Token.Type tokenType) booleanhasNext()next()private booleanshouldContinueTokenType(@Nullable Token.Type previousTokenType, @Nullable Token.Type currentTokenType) private Token.TypetokenTypeOf(Integer token, boolean treatAsText) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
expression
-
codePoints
-
buffer
-
previousTokenType
-
currentTokenType
-
treatAsText
private boolean treatAsText -
bufferStartIndex
private int bufferStartIndex -
escaped
private int escaped
-
-
Constructor Details
-
TokenIterator
TokenIterator(String expression)
-
-
Method Details
-
convertBufferToToken
-
advanceTokenTypes
private void advanceTokenTypes() -
tokenTypeOf
-
shouldContinueTokenType
private boolean shouldContinueTokenType(@Nullable Token.Type previousTokenType, @Nullable Token.Type currentTokenType) -
hasNext
public boolean hasNext() -
next
-