| org.netbeans.modules.gsf.api.Indexer
Indexer | abstract public interface Indexer (Code) | | Language plugins should implement this interface and register the
implementation in the Languages folder. This method will be called
when the index needs to be updated. The indexer should iterate through
its parsing results and store information in the provided index as
necessary. Client code like code completion etc. can later retrieve
information from the index which is passed around with CompilationInfos.
author: Tor Norbye |
getIndexVersion | String getIndexVersion()(Code) | | Return the version stamp of the schema that is currently being stored
by this indexer. Along with the index name this string will be used to
create a unique data directory for the database.
Whenever you incompatibly change what is stored by the indexer,
update the version stamp.
The version stamp of the current index. |
getIndexerName | String getIndexerName()(Code) | | Return the name of this indexer. This name should be unique because GSF
will use this name to produce a separate data directory for each indexer
where it has its own storage.
The indexer name. This does not need to be localized since it isnever shown to the user, but should contain filesystem safe characters. |
getPreindexedDb | FileObject getPreindexedDb()(Code) | | If not null, return the FileObject of a directory containing pre-indexed versions
of various libraries.
A file object for the preindexed database, or null |
isIndexable | boolean isIndexable(ParserFile file)(Code) | | Returns true iff this indexer wants to index the given file
|
|
|