expectStringIndex abstract method
The index of the next value, which must be a string, in candidates
.
The next value must be a string, it must be one of the strings in
candidates
, and it must not contain any escape sequences
The candidates
must be a sorted list of ASCII strings.
Equivalent to tryStringIndex except that it throws where
tryString would return null
.
Implementation
int expectStringIndex(List<String> candidates);