public class BracePair
extends java.lang.Object
PairedBraceMatcher
Constructor and Description |
---|
BracePair(IElementType leftBrace,
IElementType rightBrace,
boolean structural)
Creates a new brace pair instance.
|
Modifier and Type | Method and Description |
---|---|
IElementType |
getLeftBraceType()
Returns the lexer token type for the left brace in the pair.
|
IElementType |
getRightBraceType()
Returns the lexer token type for the right brace in the pair.
|
boolean |
isStructural()
Returns true if the brace is structural.
|
java.lang.String |
toString() |
public BracePair(IElementType leftBrace, IElementType rightBrace, boolean structural)
leftBrace
- the lexer token type for the left brace in the pair.rightBrace
- the lexer token type for the right brace in the pair.structural
- if true, the brace is considered structural (see isStructural()
for details)public IElementType getLeftBraceType()
public IElementType getRightBraceType()
public boolean isStructural()
public java.lang.String toString()
toString
in class java.lang.Object