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, wait
processToken
protected int lastOccurrence
public AbstractTokenStreamPattern()
protected void fail()
public int result()
result
in interface TokenStreamPattern
public boolean isTopLevel(int openAngleBrackets, int openBrackets, int openBraces, int openParentheses)
TokenStreamPattern
isTopLevel
in interface TokenStreamPattern
public boolean handleUnmatchedClosing(com.intellij.psi.tree.IElementType token)
TokenStreamPattern
handleUnmatchedClosing
in interface TokenStreamPattern
token
- the closing bracket