public class PythonSimpleStatementRecognizer extends LineBasedStatementRecognizerBase<PythonShallowParser.EPythonParserStates>
NO_MATCH, tailRecognizers| Constructor and Description |
|---|
PythonSimpleStatementRecognizer() |
| Modifier and Type | Method and Description |
|---|---|
protected PythonShallowParser.EPythonParserStates |
getSubParseState()
Returns the state to be used for a sub parse.
|
protected boolean |
startsNewStatement(IToken token,
IToken lastToken)
Returns true if the given token starts a new statement.
|
protected boolean |
tokenStartsSubParse(ETokenType tokenType,
java.util.List<IToken> tokens,
int offset,
java.util.Stack<ETokenType> expectedClosing)
Returns true if the token signals to start a sub parse (e.g.
|
getEntityName, getEntitySubtypeName, getEntityType, isNestedClosingToken, matchesLocally, registerNestingMatchcreateNode, 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, toStringpublic PythonSimpleStatementRecognizer()
protected PythonShallowParser.EPythonParserStates getSubParseState()
getSubParseState in class LineBasedStatementRecognizerBase<PythonShallowParser.EPythonParserStates>protected boolean tokenStartsSubParse(ETokenType tokenType, java.util.List<IToken> tokens, int offset, java.util.Stack<ETokenType> expectedClosing)
tokenStartsSubParse in class LineBasedStatementRecognizerBase<PythonShallowParser.EPythonParserStates>tokenType - the type of the current token.tokens - the entire token stream.offset - the offset of the current token in the token stream.expectedClosing - the stack of currently expected closing delimitersprotected boolean startsNewStatement(IToken token, IToken lastToken)
startsNewStatement in class LineBasedStatementRecognizerBase<PythonShallowParser.EPythonParserStates>