public abstract class AbstractTokenStreamPattern extends java.lang.Object implements TokenStreamPattern
| Modifier and Type | Field and Description |
|---|---|
protected int |
lastOccurrence |
| Constructor and Description |
|---|
AbstractTokenStreamPattern() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fail() |
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
|
int |
result() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessTokenprotected int lastOccurrence
public AbstractTokenStreamPattern()
protected void fail()
public int result()
result in interface TokenStreamPatternpublic boolean isTopLevel(int openAngleBrackets, int openBrackets, int openBraces, int openParentheses)
TokenStreamPatternisTopLevel in interface TokenStreamPatternpublic boolean handleUnmatchedClosing(com.intellij.psi.tree.IElementType token)
TokenStreamPatternhandleUnmatchedClosing in interface TokenStreamPatterntoken - the closing bracket