|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.ide.index.keyword.KeywordIndexer
public class KeywordIndexer
Indexes keywords in a document.
| Field Summary | |
|---|---|
protected static int |
IDENTIFIER_ARRAY_SIZESize of our pre-calculated identifier arrays. |
protected static boolean[] |
IDENTIFIER_PARTFlags indicating whether the char value (array index) is an identifier part or not. |
protected static boolean[] |
IDENTIFIER_STARTFlags indicating whether the char value (array index) is an identifier start or not. |
| Constructor Summary | |
|---|---|
KeywordIndexer() |
|
| Method Summary | |
|---|---|
void |
endIndexing(IndexingContext context)Indexing has finished on the given context. |
protected boolean |
filterKeyword(ReadTextBuffer buffer, int start, int end, char[] filter, javax.swing.text.Segment segment) |
void |
index(IndexingContext context, DataCollector data)Index the current file in the context. |
protected void |
indexImpl(IndexingContext context, DataCollector data, char[] filter, javax.swing.text.Segment segment)Index the current file in the context, using the given filter. |
protected static boolean |
isJavaIdentifierPart(char c)Determine whether a character may be part of a Java identifier. |
protected static boolean |
isJavaIdentifierStart(char c)Determine whether a character may be the start of a Java identifier. |
protected void |
reportKeyword(DataCollector data, ReadTextBuffer buffer, int start, int end, char[] filter, int hash, int flags, javax.swing.text.Segment segment) |
void |
startIndexing(IndexingContext context)Indexing is about to start on the given context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int IDENTIFIER_ARRAY_SIZE
protected static final boolean[] IDENTIFIER_PART
protected static final boolean[] IDENTIFIER_START
| Constructor Detail |
|---|
public KeywordIndexer()
| Method Detail |
|---|
protected static boolean isJavaIdentifierStart(char c)
c - the charactertrue if the character may be the start of a Java identifier, false otherwiseprotected static boolean isJavaIdentifierPart(char c)
c - the charactertrue if the character may be part of a Java identifier, false otherwisepublic void startIndexing(IndexingContext context)
IndexerstartIndexing in interface Indexercontext - the indexing contextpublic void endIndexing(IndexingContext context)
IndexerendIndexing in interface Indexercontext - the indexing context
public void index(IndexingContext context,
DataCollector data)
IndexerIndexingContext.getTextBuffer() is read locked at the time this method is called. Note that any Throwable thrown by implementations of this method is considered a bug and will be reported to the user.index in interface Indexercontext - the contextdata - the data collector where the Indexer should store its data
protected void indexImpl(IndexingContext context,
DataCollector data,
char[] filter,
javax.swing.text.Segment segment)
context - the indexing contextdata - the data collectorfilter - the filter, or null if no filtersegment - a segment that can be used to store string data
protected void reportKeyword(DataCollector data,
ReadTextBuffer buffer,
int start,
int end,
char[] filter,
int hash,
int flags,
javax.swing.text.Segment segment)
protected boolean filterKeyword(ReadTextBuffer buffer,
int start,
int end,
char[] filter,
javax.swing.text.Segment segment)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||