jfun.parsec.tokens

Class TokenQuoted

public class TokenQuoted extends Object implements Serializable

represents a string that is quoted by a open and close string. Use this token if the value of open quote and close quote matters to the syntax.

Author: Ben Yu 2004-11-15

Method Summary
booleanequals(Object obj)
StringgetClose()
Returns the closing quote.
StringgetOpen()
Returns the opening quote.
StringgetQuoted()
Returns the quoted text.
static TokenizergetTokenizer(char open, char close)
creates a Tokenizer instance that can parse a string quoted by open and close.
static TokenizergetTokenizer(String open, String close)
creates a Tokenizer instance that can parse a string quoted by open and close.
inthashCode()
StringtoString()

Method Detail

equals

public boolean equals(Object obj)

getClose

public final String getClose()
Returns the closing quote.

Returns: the closing quote

getOpen

public final String getOpen()
Returns the opening quote.

Returns: the opening quote

getQuoted

public final String getQuoted()
Returns the quoted text.

Returns: the quoted text

getTokenizer

public static Tokenizer getTokenizer(char open, char close)

Deprecated: Use Tokenizers instead.

creates a Tokenizer instance that can parse a string quoted by open and close.

Parameters: open the open quote close the close quote

Returns: the tokenizer.

getTokenizer

public static Tokenizer getTokenizer(String open, String close)

Deprecated: Use Tokenizers instead.

creates a Tokenizer instance that can parse a string quoted by open and close.

Parameters: open the opening quote close the closeing quote

Returns: the tokenizer.

hashCode

public int hashCode()

toString

public String toString()