public class LexerForMarkup extends LexerStack
| Constructor and Description |
|---|
LexerForMarkup() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected String |
commonLinkAttributes() |
protected String |
formatLinkHref(String linkText) |
protected String |
formatLinkText(String linkText) |
String |
getLinkAttributes() |
LexerForMarkup |
lex(String in) |
protected Lexer |
onWhitespace(char c,
CharIterator str) |
protected Lexer |
onWord(LexerStack parent,
String word,
CharIterator str) |
protected Lexer |
onWordStart(char c,
CharIterator str) |
LexerForMarkup |
setLinkAttributes(String linkAttributes) |
String |
toSource() |
String |
toString() |
addLexer, onWordconsume, extractWord, isWhitespaceconsumeprotected Lexer onWordStart(char c, CharIterator str)
onWordStart in class LexerForWordsprotected String commonLinkAttributes()
protected Lexer onWord(LexerStack parent, String word, CharIterator str)
onWord in class LexerStackprotected Lexer onWhitespace(char c, CharIterator str)
onWhitespace in class LexerForWordspublic String toSource()
public String getLinkAttributes()
public LexerForMarkup setLinkAttributes(String linkAttributes)
linkAttributes - the linkAttributes to setpublic LexerForMarkup lex(String in)
lex in interface Lexerlex in class LexerDefaultpublic void clear()
clear in interface Lexerclear in class LexerDefaultCopyright © December 07, 2012–2015 The Internet Party. All rights reserved.