com.adobe.flexbuilder.codemodel.indices
Interface ISearchIndex
- All Superinterfaces:
- IIndex, IIndexableFileListener, IProjectListener
- public interface ISearchIndex
- extends IIndex, IIndexableFileListener
the index that handles searches across the code model for multiple languages and file types
- Author:
- david
|
Field Summary |
static java.lang.String |
ID
|
| Methods inherited from interface com.adobe.flexbuilder.codemodel.indices.IIndex |
getIndexID |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
getOccurrences
public IOccurrence[] getOccurrences(IDefinitionProvider provider,
SearchScope scope,
SearchFilter filter)
- Finds all occurrences of the given definition provided by the
IDefinitionProvider based on the passed
in parameters
- Parameters:
provider - The IDefinitionProvider responsible for providing the IDefinition to compare againstscope - the SearchScope that details where we search for matchesfilter - the SearchFilter that tells us what to find
- Returns:
- an array of
IOccurrence objects
getOccurrences
public void getOccurrences(IDefinitionProvider provider,
SearchScope scope,
SearchFilter filter,
ISearchCollector collector)
- Finds all occurrences of the given definition provided by the
IDefinitionProvider based on the passed
in parameters
- Parameters:
provider - The IDefinitionProvider responsible for providing the IDefinition to compare againstscope - the SearchScope that details where we search for matchesfilter - the SearchFilter that tells us what to findcollector - the ISearchCollector that manages the results returned back
getIndexedFileCount
public int getIndexedFileCount(ISearchProgressListener listener)
- Returns the number of documents contained with this index
- Parameters:
listener -
- Returns:
- the number of files contained in this index