public class GoSkipToEndOfStatementRecognizer extends RecognizerBase<EGenericParserStates>
NO_MATCH, tailRecognizers
Constructor and Description |
---|
GoSkipToEndOfStatementRecognizer() |
Modifier and Type | Method and Description |
---|---|
protected int |
matchesLocally(ParserState<EGenericParserStates> parserState,
java.util.List<IToken> tokens,
int startOffset)
Attempts to match the recognizer locally (without respecting tail
recognizers).
|
void |
setForceMatch(boolean forceMatch) |
createNode, createNode, createNode, debug, endNode, endNodeWithContinuation, endNodeWithContinuation, endNodeWithName, ensureTopLevel, getRecognizerStringRepresentation, markStart, matches, notPreCondition, optional, optionalSubRecognizer, parseOnce, parseStrictlyUntil, parseUntil, parseUntilOrEof, preCondition, repeated, repeatedAtLeastOnce, repeatedSubRecognizer, sequence, sequenceBefore, skipAny, skipBefore, skipBeforeWithNesting, skipBeforeWithNesting, skipBeforeWithNesting, skipBeforeWithNesting, skipBeforeWithNesting, skipBeforeWithNesting, skipForward, skipNested, skipNested, skipTo, skipToWithNesting, skipToWithNesting, skipToWithNesting, skipToWithNesting, skipWithNesting, skipWithNesting, subRecognizer, subRecognizer, toString
public GoSkipToEndOfStatementRecognizer()
public void setForceMatch(boolean forceMatch)
forceMatch
protected int matchesLocally(ParserState<EGenericParserStates> parserState, java.util.List<IToken> tokens, int startOffset)
matchesLocally
in class RecognizerBase<EGenericParserStates>
parserState
- the current state of the underlying parser.tokens
- the list of tokens.startOffset
- the current offset into the tokens from where to start matching.RecognizerBase.NO_MATCH
if matching was not possible at this position.