protected class LexerBlockMatcher.BlockMatcher extends AbstractGenericMatcher
effectiveStartMark, parser
Modifier | Constructor and Description |
---|---|
protected |
BlockMatcher(LexerParser parser) |
Modifier and Type | Method and Description |
---|---|
protected List<ParsingContext.AutoCompleteResult> |
getAutoCompleteSecondaryOptions(MatchingPhase phase) |
LexerMatcher |
getLexerMatcher() |
void |
injectResult(Object target)
If the matcher (or one or several of the matchers in the chain) generates an Object, this allows to inject it (or them) into the result.
|
protected int |
internalGenericMatch(MatchingPhase phase,
boolean unread) |
boolean |
isAutoCompletePossible()
Considering match result, tells if autoComplete is possible or not (i.e. if options should be searched or not).
|
boolean |
isExcludedFromHierarchy(Matcher matcher)
Tells if the provided matcher should be excluded from this matcher's lexer's hierarchy.
|
checkFollowingChar, checkPreviousChar, getFollowingCharPatternMatchResult, getPreviousCharPatternMatchResult, internalMatch
equals, equivalent, getAutoCompleteOptions, getEffectiveStartMark, getEndMark, getFollowingCharPattern, getGrammar, getLexerParser, getMatchedText, getParsingContext, getPreviousCharPattern, getSource, getStartMark, getWeight, handleSecondaryOptions, hashCode, isExclusionHierarchyBreaker, isMatched, isSkipMatchText, match, toBeginParse, toEndOfMatch, toStartOfMatch, toString
protected BlockMatcher(LexerParser parser) throws DslException
DslException
protected int internalGenericMatch(MatchingPhase phase, boolean unread) throws IOException, DslException
internalGenericMatch
in class AbstractGenericMatcher
IOException
DslException
public void injectResult(Object target) throws DslException
Matcher
DslException
protected List<ParsingContext.AutoCompleteResult> getAutoCompleteSecondaryOptions(MatchingPhase phase) throws IOException, DslException
getAutoCompleteSecondaryOptions
in class AbstractMatcher
IOException
DslException
public boolean isAutoCompletePossible() throws DslException
Matcher
DslException
public LexerMatcher getLexerMatcher()
public boolean isExcludedFromHierarchy(Matcher matcher) throws DslException
AbstractMatcher
isExcludedFromHierarchy
in interface Matcher
isExcludedFromHierarchy
in class AbstractMatcher
DslException