public interface ExtendedBraceProvider extends BraceProvider
ExtendedBraceProvider interface extends the
 BraceProvider to provide a routine to allow
 matching-brace highlight support to locate the closest brace. 
 
 This allows brace-matching to always highlight the closest
 enclosing braces (vs. highlighting only when on the brace).
 This is a separate interface to avoid breaking existing language
 implementations that already implement BraceProvider.
BraceProvider| Modifier and Type | Field and Description | 
|---|---|
static int | 
BRACE_TYPE_ARRAY
Constant indicating that the given brace type is used for array
 indexing. 
 | 
static int | 
BRACE_TYPE_BLOCK
Constant indicating that the given brace type is used for delimiting
 code blocks. 
 | 
static int | 
BRACE_TYPE_PARENTHETICAL
Constant indicating that the given brace type is used in parenthetical
 expressions. 
 | 
static int | 
BRACE_TYPE_UNKNOWN
Constant indicating that the given brace type is unknown. 
 | 
BALANCED_MATCH, MISMATCH, UNBALANCED_MATCH| Modifier and Type | Method and Description | 
|---|---|
int | 
findClosestBrace(int offset,
                NumberRange braceLocation)
Finds the brace that is closest to the specified offset, but which 
 occurs before the specified offset. 
 | 
int | 
getBraceType(int tokenType,
            NumberRange braceLocation)
Fetch the brace type represented by the given language-specific token
 type, such as BRACE_TYPE_PARENTHETICAL. 
 | 
boolean | 
isCloseBraceType(int tokenType)
Fetch whether the brace type represented by the given language-specific
 token type represents a CLOSED brace type. 
 | 
boolean | 
isOpenBraceType(int tokenType)
Fetch whether the brace type represented by the given language-specific
 token type represents an OPEN brace type. 
 | 
findMatchingBrace, isPartOfBracestatic final int BRACE_TYPE_UNKNOWN
static final int BRACE_TYPE_PARENTHETICAL
static final int BRACE_TYPE_ARRAY
static final int BRACE_TYPE_BLOCK
int findClosestBrace(int offset,
                   NumberRange braceLocation)
offset - the starting offset to search frombraceLocation - an out parameter to pass start and end
        offset information to the caller if a closest brace was found
        before the offsetboolean isOpenBraceType(int tokenType)
tokenType - the language-specific token type returned by
        findClosestBraceboolean isCloseBraceType(int tokenType)
tokenType - the language-specific token type returned by
        findClosestBraceint getBraceType(int tokenType,
               NumberRange braceLocation)
tokenType - the language-specific token type returned by
        findClosestBracebraceLocation - the brace location filled in by findClosestBrace()