public interface TokenStreamPattern
Modifier and Type | Method and Description |
---|---|
boolean |
handleUnmatchedClosing(com.intellij.psi.tree.IElementType token)
Called on right parentheses, brackets, braces and angles (>)
|
boolean |
isTopLevel(int openAngleBrackets,
int openBrackets,
int openBraces,
int openParentheses)
Decides if the combination of open bracet counts makes a "top level position"
Straightforward meaning would be: if all counts are zero, then it's a top level
|
boolean |
processToken(int offset,
boolean topLevel)
Called on each token
|
int |
result() |
boolean processToken(int offset, boolean topLevel)
offset
- topLevel
- see isTopLevel(int, int, int, int)
true
to stopint result()
boolean isTopLevel(int openAngleBrackets, int openBrackets, int openBraces, int openParentheses)
boolean handleUnmatchedClosing(com.intellij.psi.tree.IElementType token)
token
- the closing bracket