public class AndLexerMatcher.AndMatcher extends AbstractCombineLexerMatcher.AbstractCombineMatcher
computedMatchers
effectiveStartMark, parser
Constructor and Description |
---|
AndMatcher(LexerParser parser) |
Modifier and Type | Method and Description |
---|---|
protected List<ParsingContext.AutoCompleteResult> |
getAutoCompleteSecondaryOptions(MatchingPhase phase) |
Pattern |
getFollowingCharPattern() |
CharPatternMatchResult |
getFollowingCharPatternMatchResult() |
AndLexerMatcher |
getLexerMatcher() |
List<Matcher> |
getMatchedMatchers() |
Pattern |
getPreviousCharPattern() |
CharPatternMatchResult |
getPreviousCharPatternMatchResult() |
void |
injectResult(Object target)
Injects result of all matched matchers.
|
protected int |
internalMatch(MatchingPhase phase,
boolean unread)
Performs specific part of the match.
|
boolean |
isAutoCompletePossible()
Considering match result, tells if autoComplete is possible or not (i.e. if options should be searched or not).
|
boolean |
isSkipMatchText() |
void |
toBeginParse()
If isSkipMatchText is true, goes to end of match.
|
equals, equivalent, getAutoCompleteOptions, getEffectiveStartMark, getEndMark, getGrammar, getLexerParser, getMatchedText, getParsingContext, getSource, getStartMark, getWeight, handleSecondaryOptions, hashCode, isExcludedFromHierarchy, isExclusionHierarchyBreaker, isMatched, match, toEndOfMatch, toStartOfMatch, toString
public AndMatcher(LexerParser parser) throws DslException
DslException
protected int internalMatch(MatchingPhase phase, boolean unread) throws IOException, DslException
AbstractMatcher
internalMatch
in class AbstractMatcher
phase
- Phase is already handled by main match method but is provided as information. It might not be used in general.unread
- Flag is already handled by main match method but is provided as information. It might not be used in general.IOException
DslException
public void injectResult(Object target) throws DslException
DslException
Matcher.injectResult(Object)
public void toBeginParse()
AbstractMatcher
toBeginParse
in interface Matcher
toBeginParse
in class AbstractMatcher
protected List<ParsingContext.AutoCompleteResult> getAutoCompleteSecondaryOptions(MatchingPhase phase) throws IOException, DslException
getAutoCompleteSecondaryOptions
in class AbstractMatcher
IOException
DslException
public boolean isAutoCompletePossible() throws DslException
Matcher
DslException
public AndLexerMatcher getLexerMatcher()
getLexerMatcher
in interface Matcher
getLexerMatcher
in class AbstractCombineLexerMatcher.AbstractCombineMatcher
public boolean isSkipMatchText()
isSkipMatchText
in interface Matcher
isSkipMatchText
in class AbstractMatcher
public Pattern getPreviousCharPattern()
getPreviousCharPattern
in interface Matcher
getPreviousCharPattern
in class AbstractMatcher
public Pattern getFollowingCharPattern()
getFollowingCharPattern
in interface Matcher
getFollowingCharPattern
in class AbstractMatcher
public CharPatternMatchResult getPreviousCharPatternMatchResult()
public CharPatternMatchResult getFollowingCharPatternMatchResult()