Interface IWordState
-
- All Superinterfaces:
ITokenizerState
- All Known Implementing Classes:
CsvWordState,ExpressionWordState,GenericWordState
public interface IWordState extends ITokenizerState
Defines an interface for tokenizer state that processes words, identificators or keywords
-
-
Method Summary
Modifier and Type Method Description voidclearWordChars()Clears definitions of word chars.voidsetWordChars(int fromSymbol, int toSymbol, boolean enable)Establish characters in the given range as valid characters for part of a word after the first character.-
Methods inherited from interface org.pipservices3.expressions.tokenizers.ITokenizerState
nextToken
-
-
-
-
Method Detail
-
setWordChars
void setWordChars(int fromSymbol, int toSymbol, boolean enable) throws ExceptionEstablish characters in the given range as valid characters for part of a word after the first character. Note that the tokenizer must determine which characters are valid as the beginning character of a word.- Parameters:
fromSymbol- First character index of the interval.toSymbol- Last character index of the interval.enable-trueif this state should use characters in the given range.- Throws:
Exception
-
clearWordChars
void clearWordChars()
Clears definitions of word chars.
-
-