Class ExpressionQuoteState
java.lang.Object
org.pipservices3.expressions.calculator.tokenizers.ExpressionQuoteState
- All Implemented Interfaces:
IQuoteState
,ITokenizerState
Implements an Expression-specific quote string state object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeString
(String value, int quoteSymbol) Decodes a string value.encodeString
(String value, int quoteSymbol) Encodes a string value.nextToken
(IScanner scanner, ITokenizer tokenizer) Gets the next token from the stream started from the character linked to this state.
-
Field Details
-
QUOTE
protected final int QUOTE- See Also:
-
-
Constructor Details
-
ExpressionQuoteState
public ExpressionQuoteState()
-
-
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
-
encodeString
Encodes a string value.- Specified by:
encodeString
in interfaceIQuoteState
- Parameters:
value
- A string value to be encoded.quoteSymbol
- A string quote character.- Returns:
- An encoded string.
-
decodeString
Decodes a string value.- Specified by:
decodeString
in interfaceIQuoteState
- Parameters:
value
- A string value to be decoded.quoteSymbol
- A string quote character.- Returns:
- A decoded string.
-