public interface BraceMatcher
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<FileTypeExtensionPoint<BraceMatcher>> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
int |
getBraceTokenGroupId(IElementType tokenType) |
int |
getCodeConstructStart(PsiFile file,
int openingBraceOffset)
Returns the start offset of the code construct which owns the opening structural brace at the specified offset.
|
IElementType |
getOppositeBraceTokenType(IElementType type) |
boolean |
isLBraceToken(HighlighterIterator iterator,
java.lang.CharSequence fileText,
FileType fileType) |
boolean |
isPairBraces(IElementType tokenType,
IElementType tokenType2) |
boolean |
isPairedBracesAllowedBeforeType(IElementType lbraceType,
IElementType contextType) |
boolean |
isRBraceToken(HighlighterIterator iterator,
java.lang.CharSequence fileText,
FileType fileType) |
boolean |
isStructuralBrace(HighlighterIterator iterator,
java.lang.CharSequence text,
FileType fileType) |
static final ExtensionPointName<FileTypeExtensionPoint<BraceMatcher>> EP_NAME
int getBraceTokenGroupId(IElementType tokenType)
boolean isLBraceToken(HighlighterIterator iterator, java.lang.CharSequence fileText, FileType fileType)
boolean isRBraceToken(HighlighterIterator iterator, java.lang.CharSequence fileText, FileType fileType)
boolean isPairBraces(IElementType tokenType, IElementType tokenType2)
boolean isStructuralBrace(HighlighterIterator iterator, java.lang.CharSequence text, FileType fileType)
IElementType getOppositeBraceTokenType(IElementType type)
boolean isPairedBracesAllowedBeforeType(IElementType lbraceType, IElementType contextType)
int getCodeConstructStart(PsiFile file, int openingBraceOffset)
file
- the file in which brace matching is performed.openingBraceOffset
- the offset of an opening structural brace.