public interface LexerMatcher extends Documented, Serializable, MatcherAutoCompleter
Modifier and Type | Interface and Description |
---|---|
static class |
LexerMatcher.Priority
Describes the priority to apply to a matcher, in case two have the same weight.
|
Modifier and Type | Method and Description |
---|---|
Pattern |
getFollowingCharPattern() |
MatcherListener |
getListener()
Retrieves the MatcherListener if configured.
|
Matcher |
getMatcher(LexerParser parser) |
AutoCompleteConfiguration |
getMatcherAutoCompleteConfiguration()
Allows to configure a preferred autoComplete scheme for this lexer matcher.
|
Pattern |
getPreviousCharPattern() |
LexerMatcher.Priority |
getPriority()
Default priority should be the "normal" value.
|
boolean |
isExclusionHierarchyBreaker()
Tells if this matcher should break search for exclusion in older hierarchy.
|
boolean |
isSkipMatchText() |
boolean |
isSkipSpacesBeforeMatch()
In general, should be true, because spaces are unused characters.
|
getDslDoc, setDslDoc
setMatcherAutoCompleteConfiguration
Matcher getMatcher(LexerParser parser) throws DslException
DslException
Pattern getPreviousCharPattern()
Pattern getFollowingCharPattern()
boolean isSkipMatchText()
boolean isSkipSpacesBeforeMatch()
boolean isExclusionHierarchyBreaker()
LexerMatcher.Priority getPriority()
AutoCompleteConfiguration getMatcherAutoCompleteConfiguration()
getMatcherAutoCompleteConfiguration
in interface MatcherAutoCompleter
MatcherListener getListener()