public abstract class AbstractLexer extends Object implements Lexer
Constructor and Description |
---|
AbstractLexer() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DslDoc |
getDslDoc()
Extra documentation used by doc gen.
|
LexerMatcher |
getEnd() |
String |
getId() |
LexerParserListener |
getListener()
Retrieves the LexerParserListener if configured.
|
Class<? extends LexerParserListener> |
getListenerClass() |
AutoCompleteConfiguration |
getMatcherAutoCompleteConfiguration()
Allows to configure a preferred autoComplete scheme for this lexer.
|
LexerMatcher |
getStart() |
int |
hashCode() |
boolean |
isRoot() |
boolean |
isRootOnly() |
LexerMatcher |
resolveEnd(LexerParser lexerParser)
Resolves the end matcher for this lexer.
|
LexerMatcher |
resolveStart(LexerParser lexerParser)
Resolves the start matcher for this lexer.
|
void |
setDslDoc(DslDoc dslDoc)
Extra documentation used by doc gen.
|
void |
setEnd(LexerMatcher end) |
void |
setId(String id) |
void |
setListenerClass(Class<? extends LexerParserListener> listenerClass)
Also sets internal instance.
|
void |
setMatcherAutoCompleteConfiguration(AutoCompleteConfiguration autoCompleteConfiguration)
Allows to configure a preferred autoComplete scheme.
|
void |
setRoot(boolean root) |
void |
setRootOnly(boolean rootOnly) |
void |
setStart(LexerMatcher start) |
String |
toString() |
void |
validate(Grammar grammar)
Default implementation does nothing.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getParser, isOrdered, resolveType
public void setId(String id)
public boolean isRoot()
public void setRoot(boolean root)
public boolean isRootOnly()
isRootOnly
in interface Lexer
public void setRootOnly(boolean rootOnly)
public LexerMatcher resolveStart(LexerParser lexerParser) throws DslException
Lexer
resolveStart
in interface Lexer
DslException
LexerParser.resolveStart()
public LexerMatcher getStart()
public void setStart(LexerMatcher start)
public LexerMatcher getEnd()
public LexerMatcher resolveEnd(LexerParser lexerParser) throws DslException
Lexer
resolveEnd
in interface Lexer
DslException
LexerParser.resolveEnd()
public void setEnd(LexerMatcher end)
public Class<? extends LexerParserListener> getListenerClass()
public void setListenerClass(Class<? extends LexerParserListener> listenerClass) throws UtilsException
UtilsException
public LexerParserListener getListener()
Lexer
getListener
in interface Lexer
public AutoCompleteConfiguration getMatcherAutoCompleteConfiguration()
Lexer
getMatcherAutoCompleteConfiguration
in interface MatcherAutoCompleter
getMatcherAutoCompleteConfiguration
in interface Lexer
public void setMatcherAutoCompleteConfiguration(AutoCompleteConfiguration autoCompleteConfiguration)
MatcherAutoCompleter
setMatcherAutoCompleteConfiguration
in interface MatcherAutoCompleter
public DslDoc getDslDoc()
Documented
getDslDoc
in interface Documented
public void setDslDoc(DslDoc dslDoc)
Documented
setDslDoc
in interface Documented
public void validate(Grammar grammar) throws DslException
validate
in interface Lexer
grammar
- Related grammarDslException