public class TextConstParser extends Object implements TokenParser
text ::= doubleQuote { escapeText | anyChar } doubleQuote
| singleQuote { escapeText | anyChar } singleQuote
doubleQuote ::= "
singleQuote ::= '
escapeChar ::= \
escapeText ::= escapeChar
( escapeChar
| singleQuote
| doubleQuote
| n
| r
| t
| b
| f
| u hexDigit
)
hexDigit ::= 0..9
| a..f
| A..F
| Constructor and Description |
|---|
TextConstParser() |
TextConstParser(String id) |
| Modifier and Type | Method and Description |
|---|---|
TextConst |
parse(String source,
int offset)
Возвращает токен если ему соответ цепочка сиволов в указаной точке
|
protected String id
public TextConstParser()
public TextConstParser(String id)
public TextConst parse(String source, int offset)
TokenParserparse in interface TokenParsersource - Цепочка символовoffset - Смещение от начала цепочки символовCopyright © 2019. All rights reserved.