|
org.netbeans.modules.parsing.api/1 1.55.0 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.parsing.spi.indexing.Context
public final class Context
Represents a context of indexing given root.
| Method Summary | |
|---|---|
void |
addSupplementaryFiles(URL root,
Collection<? extends URL> files)
Schedules additional files for reindexing. |
boolean |
checkForEditorModifications()
Notifies indexers whether they should use editor documents rather than just files. |
FileObject |
getIndexFolder()
Returns the cache folder where the indexer may store language metadata. |
FileObject |
getRoot()
Return the processed root, may return null when the processed root was deleted. |
URL |
getRootURI()
Return the URL of the processed root |
SuspendStatus |
getSuspendStatus()
Returns SuspendStatus providing information
about indexing suspension. |
boolean |
isAllFilesIndexing()
Indicates whether all files under the root are being indexed. |
boolean |
isCancelled()
|
boolean |
isSourceForBinaryRootIndexing()
Indicates whether sources of some binary library are being indexed. |
boolean |
isSupplementaryFilesIndexing()
Indicates whether the current indexing job was requested by calling addSupplementaryFiles(java.net.URL, java.util.Collection) method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public FileObject getIndexFolder()
public URL getRootURI()
URL of the processed root
public FileObject getRoot()
getRootURI() can be used in
this case.
public void addSupplementaryFiles(URL root,
Collection<? extends URL> files)
root - The common parent folder of the files that should be reindexed.files - The files to reindex. Can be null or an empty
collection in which case all files under the root will
be reindexed.public boolean isSupplementaryFilesIndexing()
addSupplementaryFiles(java.net.URL, java.util.Collection) method.
true if the indexing job was requested by addSupplementaryFiles,
otherwise false.public boolean isAllFilesIndexing()
IndexingManager) or they can index all files under the root. Some
indexers are interested in knowing this information in order to optimize their
indexing.
true if indexing all files under the root.public boolean isSourceForBinaryRootIndexing()
true if indexing sources for binary root.public boolean checkForEditorModifications()
CustomIndexers that may optimize
their work and not try to find editor documents for their Indexables.
EmbeddingIndexers can safely ignore this flag since they operate
on Parser.Results and Snapshots, which are guaranteed
to be in sync with editor documents or loaded efficiently from a file if the
file is not opened in the editor.
false if indexers don't have to care about possible
editor modifications or true otherwise.public boolean isCancelled()
@NonNull public SuspendStatus getSuspendStatus()
SuspendStatus providing information
about indexing suspension.
SuspendStatus
|
org.netbeans.modules.parsing.api/1 1.55.0 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||