public abstract class AbstractGenericMatcher extends AbstractMatcher
effectiveStartMark, parser
Constructor and Description |
---|
AbstractGenericMatcher(LexerParser parser) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkFollowingChar()
Checks if next char from source matches the next char pattern.
|
protected boolean |
checkPreviousChar()
Checks if previous char from source matches the previous char pattern.
|
CharPatternMatchResult |
getFollowingCharPatternMatchResult() |
CharPatternMatchResult |
getPreviousCharPatternMatchResult() |
protected abstract int |
internalGenericMatch(MatchingPhase phase,
boolean unread) |
protected int |
internalMatch(MatchingPhase phase,
boolean unread)
Performs specific part of the match.
|
equals, equivalent, getAutoCompleteOptions, getAutoCompleteSecondaryOptions, getEffectiveStartMark, getEndMark, getFollowingCharPattern, getGrammar, getLexerParser, getMatchedText, getParsingContext, getPreviousCharPattern, getSource, getStartMark, getWeight, handleSecondaryOptions, hashCode, isExcludedFromHierarchy, isExclusionHierarchyBreaker, isMatched, isSkipMatchText, match, toBeginParse, toEndOfMatch, toStartOfMatch, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLexerMatcher, injectResult, isAutoCompletePossible
public AbstractGenericMatcher(LexerParser parser)
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
protected abstract int internalGenericMatch(MatchingPhase phase, boolean unread) throws IOException, DslException
IOException
DslException
protected boolean checkPreviousChar() throws IOException
IOException
protected boolean checkFollowingChar() throws IOException
IOException
public CharPatternMatchResult getPreviousCharPatternMatchResult()
public CharPatternMatchResult getFollowingCharPatternMatchResult()