public interface Lexer extends Documented, Serializable, MatcherAutoCompleter
Modifier and Type | Method and Description |
---|---|
String |
getId() |
LexerParserListener |
getListener()
Retrieves the LexerParserListener if configured.
|
AutoCompleteConfiguration |
getMatcherAutoCompleteConfiguration()
Allows to configure a preferred autoComplete scheme for this lexer.
|
LexerParser |
getParser(LexerParser parent)
Returns a parser which is able to handles the text relative to this lexer
|
boolean |
isOrdered() |
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.
|
Class<?> |
resolveType(Grammar grammar)
Resolves the type of the object parsed by this lexer.
|
void |
setId(String id) |
void |
validate(Grammar grammar)
Allows to validate the lexer.
|
getDslDoc, setDslDoc
setMatcherAutoCompleteConfiguration
String getId()
void setId(String id)
id
- Lexer unique ID to setboolean isRoot()
boolean isRootOnly()
boolean isOrdered()
LexerMatcher resolveStart(LexerParser lexerParser) throws DslException
DslException
LexerParser.resolveStart()
LexerMatcher resolveEnd(LexerParser lexerParser) throws DslException
DslException
LexerParser.resolveEnd()
Class<?> resolveType(Grammar grammar) throws DslException
DslException
void validate(Grammar grammar) throws DslException
grammar
- Related grammarDslException
LexerParser getParser(LexerParser parent) throws DslException
parent
- Parent parserDslException
LexerParserListener getListener()
AutoCompleteConfiguration getMatcherAutoCompleteConfiguration()
getMatcherAutoCompleteConfiguration
in interface MatcherAutoCompleter