Class ExpressionNumberState
- java.lang.Object
-
- org.pipservices3.expressions.tokenizers.generic.GenericNumberState
-
- org.pipservices3.expressions.calculator.tokenizers.ExpressionNumberState
-
- All Implemented Interfaces:
INumberState,ITokenizerState
public class ExpressionNumberState extends GenericNumberState
Implements an Expression-specific number state object.
-
-
Field Summary
-
Fields inherited from class org.pipservices3.expressions.tokenizers.generic.GenericNumberState
DOT, MINUS
-
-
Constructor Summary
Constructors Constructor Description ExpressionNumberState()
-
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.
-
-
-
Field Detail
-
PLUS
protected final int PLUS
- See Also:
- Constant Field Values
-
EXP1
protected final int EXP1
- See Also:
- Constant Field Values
-
EXP2
protected final int EXP2
- See Also:
- Constant Field Values
-
-
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 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
-
-