Class ExpressionNumberState
java.lang.Object
org.pipservices3.expressions.tokenizers.generic.GenericNumberState
org.pipservices3.expressions.calculator.tokenizers.ExpressionNumberState
- All Implemented Interfaces:
INumberState
,ITokenizerState
Implements an Expression-specific number state object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
protected final int
protected final int
Fields inherited from class org.pipservices3.expressions.tokenizers.generic.GenericNumberState
DOT, MINUS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnextToken
(IScanner scanner, ITokenizer tokenizer) Gets the next token from the stream started from the character linked to this state.
-
Field Details
-
PLUS
protected final int PLUS- See Also:
-
EXP1
protected final int EXP1- See Also:
-
EXP2
protected final int EXP2- See Also:
-
-
Constructor Details
-
ExpressionNumberState
public ExpressionNumberState()
-
-
Method Details
-
nextToken
Gets the next token from the stream started from the character linked to this state.- Specified by:
nextToken
in interfaceITokenizerState
- Overrides:
nextToken
in classGenericNumberState
- 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
-