Constructor and Description |
---|
DependencyIndexer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDeclaration(IndexDeclaration declaration)
Add a declaration to the index.
|
protected void |
addReference(IndexReference reference)
Add a reference to the index.
|
void |
endIndexing(IndexingContext context)
Indexing has finished on the given context.
|
void |
index(IndexingContext context,
DataCollector data)
Index the current file in the context.
|
protected abstract void |
indexDependencies(IndexingContext context)
Implemented by subclasses to index the dependencies.
|
void |
startIndexing(IndexingContext context)
Indexing is about to start on the given context.
|
public void startIndexing(IndexingContext context)
Indexer
startIndexing
in interface Indexer
context
- the indexing contextpublic void endIndexing(IndexingContext context)
Indexer
endIndexing
in interface Indexer
context
- the indexing contextpublic void index(IndexingContext context, DataCollector data)
Indexer
IndexingContext.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.protected abstract void indexDependencies(IndexingContext context)
addDeclaration(oracle.ide.dependency.index.IndexDeclaration)
and addReference(oracle.ide.dependency.index.IndexReference)
methods
to add their declarations and references to the index.context
- the indexing contextprotected void addDeclaration(IndexDeclaration declaration)
declaration
- the declarationprotected void addReference(IndexReference reference)
reference
- the reference