Class ExpressionWordState
- java.lang.Object
-
- org.pipservices3.expressions.tokenizers.generic.GenericWordState
-
- org.pipservices3.expressions.calculator.tokenizers.ExpressionWordState
-
- All Implemented Interfaces:
ITokenizerState,IWordState
public class ExpressionWordState extends GenericWordState
-
-
Constructor Summary
Constructors Constructor Description ExpressionWordState()Constructs an instance of this class.
-
Method Summary
Modifier and Type Method Description TokennextToken(IScanner scanner, ITokenizer tokenizer)Gets the next token from the stream started from the character linked to this state.-
Methods inherited from class org.pipservices3.expressions.tokenizers.generic.GenericWordState
clearWordChars, setWordChars
-
-
-
-
Field Detail
-
keywords
public final String[] keywords
Supported expression keywords.
-
-
Method Detail
-
nextToken
public Token nextToken(IScanner scanner, ITokenizer tokenizer) throws Exception
Gets the next token from the stream started from the character linked to this state.- Specified by:
nextTokenin interfaceITokenizerState- Overrides:
nextTokenin classGenericWordState- Parameters:
scanner- A textual string to be tokenized.tokenizer- A tokenizer class that controls the process.- Returns:
- The next token from the top of the stream.
- Throws:
Exception
-
-