public class ModuleBlockStartRecognizer extends RecognizerBase<AbapShallowParser.EAbapParserStates>
module x. module x input. module x output.and ends with
endmodule
.
This recognizer is used to distinguish module statements (that invoke a module) from module declarations (matched by this recognizer).
Note that module statements cannot appear inside module blocks.
NO_MATCH, tailRecognizers
Constructor and Description |
---|
ModuleBlockStartRecognizer() |
Modifier and Type | Method and Description |
---|---|
protected int |
matchesLocally(ParserState<AbapShallowParser.EAbapParserStates> parserState,
java.util.List<IToken> tokens,
int startOffset)
Attempts to match the recognizer locally (without respecting tail
recognizers).
|
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 ModuleBlockStartRecognizer()
protected int matchesLocally(ParserState<AbapShallowParser.EAbapParserStates> parserState, java.util.List<IToken> tokens, int startOffset)
matchesLocally
in class RecognizerBase<AbapShallowParser.EAbapParserStates>
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.