Class GenericNumberState
java.lang.Object
org.pipservices3.expressions.tokenizers.generic.GenericNumberState
- All Implemented Interfaces:
INumberState
,ITokenizerState
- Direct Known Subclasses:
ExpressionNumberState
A NumberState object returns a number from a scanner. This state's idea of a number allows
an optional, initial minus sign, followed by one or more digits. A decimal point and another string
of digits may follow these digits.
-
Field Summary
Fields -
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
-
MINUS
protected final int MINUS- See Also:
-
DOT
protected final int DOT- See Also:
-
-
Constructor Details
-
GenericNumberState
public GenericNumberState()
-
-
Method Details
-
nextToken
Gets the next token from the stream started from the character linked to this state.- Specified by:
nextToken
in interfaceITokenizerState
- 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
-