ExpressionQuoteState

Implements an Expression-specific quote string state object.

Implements: IQuoteState

Description

The ExpressionQuoteState class implements an Expression-specific quote string state object.

Fields

QUOTE

Represents a " symbol.

protected final int QUOTE = ‘"’

Instance methods

decodeString

Decodes a string value.

public String decodeString(String value, int quoteSymbol)

  • value: String - A string value to be decoded.
  • quoteSymbol: int - A string quote character.
  • returns: String - An decoded string.

encodeString

Encodes a string value.

public String encodeString(String value, int quoteSymbol)

  • value: String - A string value to be encoded.
  • quoteSymbol: int - A string quote character.
  • returns: String - An encoded string.

nextToken

Gets the next token from the stream started from the character linked to this state.

public Token nextToken(IScanner scanner, ITokenizer tokenizer) throws Exception

  • scanner: IScanner - textual string to be tokenized.
  • tokenizer: ITokenizer - tokenizer class that controls the process.
  • returns: Token - next token from the top of the stream.