|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.lang.BracePair
public class BracePair
Defines a single pair of braces which need to be matched when editing code in a custom language.
PairedBraceMatcher| Constructor Summary | |
|---|---|
BracePair(char leftBraceChar,
IElementType leftBrace,
char rightBraceChar,
IElementType rightBrace,
boolean structural)
Creates a new brace pair instance. |
|
| Method Summary | |
|---|---|
char |
getLeftBraceChar()
Returns the character for the left brace in the pair. |
IElementType |
getLeftBraceType()
Returns the lexer token type for the left brace in the pair. |
char |
getRightBraceChar()
Returns the character for the right 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BracePair(char leftBraceChar,
IElementType leftBrace,
char rightBraceChar,
IElementType rightBrace,
boolean structural)
leftBraceChar - the character for the left brace in the pair.leftBrace - the lexer token type for the left brace in the pair.rightBraceChar - the character for the right 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)| Method Detail |
|---|
public IElementType getLeftBraceType()
public IElementType getRightBraceType()
public boolean isStructural()
public char getLeftBraceChar()
public char getRightBraceChar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||