public abstract class AbstractLexerMatcherWrapper extends Object implements LexerMatcher
LexerMatcher.Priority
Constructor and Description |
---|
AbstractLexerMatcherWrapper() |
AbstractLexerMatcherWrapper(LexerMatcher wrapped) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
DslDoc |
getDslDoc()
Extra documentation used by doc gen.
|
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.
|
LexerMatcher |
getWrapped() |
int |
hashCode() |
protected abstract boolean |
internalEquals(AbstractLexerMatcherWrapper obj) |
protected abstract int |
internalHashCode() |
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.
|
void |
setDslDoc(DslDoc doc)
Extra documentation used by doc gen.
|
void |
setMatcherAutoCompleteConfiguration(AutoCompleteConfiguration autoCompleteConfiguration)
Allows to configure a preferred autoComplete scheme.
|
void |
setWrapped(LexerMatcher wrapped) |
public AbstractLexerMatcherWrapper()
public AbstractLexerMatcherWrapper(LexerMatcher wrapped)
public Matcher getMatcher(LexerParser parser) throws DslException
getMatcher
in interface LexerMatcher
DslException
public MatcherListener getListener()
LexerMatcher
getListener
in interface LexerMatcher
public Pattern getPreviousCharPattern()
getPreviousCharPattern
in interface LexerMatcher
public Pattern getFollowingCharPattern()
getFollowingCharPattern
in interface LexerMatcher
public LexerMatcher.Priority getPriority()
LexerMatcher
getPriority
in interface LexerMatcher
public boolean isSkipMatchText()
isSkipMatchText
in interface LexerMatcher
public boolean isSkipSpacesBeforeMatch()
LexerMatcher
isSkipSpacesBeforeMatch
in interface LexerMatcher
public boolean isExclusionHierarchyBreaker()
LexerMatcher
isExclusionHierarchyBreaker
in interface LexerMatcher
public AutoCompleteConfiguration getMatcherAutoCompleteConfiguration()
LexerMatcher
getMatcherAutoCompleteConfiguration
in interface MatcherAutoCompleter
getMatcherAutoCompleteConfiguration
in interface LexerMatcher
public void setMatcherAutoCompleteConfiguration(AutoCompleteConfiguration autoCompleteConfiguration)
MatcherAutoCompleter
setMatcherAutoCompleteConfiguration
in interface MatcherAutoCompleter
public DslDoc getDslDoc()
Documented
getDslDoc
in interface Documented
public void setDslDoc(DslDoc doc)
Documented
setDslDoc
in interface Documented
public LexerMatcher getWrapped()
public void setWrapped(LexerMatcher wrapped)
protected abstract int internalHashCode()
protected abstract boolean internalEquals(AbstractLexerMatcherWrapper obj)