| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExtendedBraceProvider
The 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| Field Summary | |
|---|---|
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.  | 
| Fields inherited from interface oracle.javatools.editor.language.BraceProvider | 
|---|
BALANCED_MATCH, MISMATCH, UNBALANCED_MATCH | 
| Method Summary | |
|---|---|
 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.  | 
| Methods inherited from interface oracle.javatools.editor.language.BraceProvider | 
|---|
findMatchingBrace, isPartOfBrace | 
| Field Detail | 
|---|
static final int BRACE_TYPE_UNKNOWN
static final int BRACE_TYPE_PARENTHETICAL
static final int BRACE_TYPE_ARRAY
static final int BRACE_TYPE_BLOCK
| Method Detail | 
|---|
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
        findClosestBrace
boolean isCloseBraceType(int tokenType)
tokenType - the language-specific token type returned by
        findClosestBrace
int getBraceType(int tokenType,
                 NumberRange braceLocation)
tokenType - the language-specific token type returned by
        findClosestBracebraceLocation - the brace location filled in by findClosestBrace()
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||