public class ProjectIndexerInputAdapter extends IndexerInputAdapter
| Constructor and Description |
|---|
ProjectIndexerInputAdapter(ICProject cproject) |
ProjectIndexerInputAdapter(ICProject cproject,
boolean useCache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBePartOfSDK(IIndexFileLocation ifl)
Tests whether the file in the index is allowed to be part of an SDK.
|
boolean |
doesIncludeFileExist(java.lang.String includePath)
Check for existence of an inclusion as computed by the preprocessor.
|
java.lang.String |
getASTPath(IIndexFileLocation ifl)
Convert an index file location to the path as it will be stored in the AST.
|
IScannerInfo |
getBuildConfiguration(int linkageID,
java.lang.Object tu)
Obtains the scanner configuration for the input file.
|
FileContent |
getCodeReader(java.lang.Object tuo)
Returns a code reader for the given input file.
|
java.lang.String |
getEncoding(IIndexFileLocation ifl)
Returns the encoding for the file.
|
long |
getFileSize(IIndexFileLocation ifl)
Returns the size of the file in bytes, or 0 if the file does not exist.
|
long |
getFileSize(java.lang.String astFilePath)
Returns the size of the file in bytes, or -1 if it cannot be determined
|
int |
getIndexingPriority(IIndexFileLocation ifl)
Returns the priority of indexing a file.
|
java.lang.Object |
getInputFile(IIndexFileLocation location)
Returns an object representing an input file for the given index location,
or
null, if it does not exist. |
AbstractLanguage[] |
getLanguages(java.lang.Object tuo,
AbstractIndexerTask.UnusedHeaderStrategy strategy)
Obtains the languages the input file should be parsed with.
|
long |
getLastModified(IIndexFileLocation ifl)
Return the last modification date for the file denoted by the index location.
|
boolean |
isCaseInsensitiveFileSystem()
Returns whether the file-system is case insensitive.
|
boolean |
isFileBuildConfigured(java.lang.Object tuo)
Tests whether the input file is part of the build.
|
boolean |
isIndexedOnlyIfIncluded(java.lang.Object tu)
Returns whether the given translation unit is not indexed unless it gets included.
|
boolean |
isIndexedUnconditionally(IIndexFileLocation ifl)
Checks whether the given file should be indexed unconditionally.
|
boolean |
isSource(java.lang.String filename)
Answers whether this file is considered to be a source file (vs.
|
boolean |
isSourceUnit(java.lang.Object tuo)
Tests whether the input file is a source unit.
|
IIndexFileLocation |
resolveASTPath(java.lang.String astPath)
Resolve a path as stored in the AST.
|
IIndexFileLocation |
resolveFile(java.lang.Object tuo)
Create an index location for the given input file.
|
IIndexFileLocation |
resolveIncludeFile(java.lang.String includePath)
Resolve a path for an inclusion as computed by the preprocessor.
|
public ProjectIndexerInputAdapter(ICProject cproject)
public ProjectIndexerInputAdapter(ICProject cproject,
boolean useCache)
public boolean isCaseInsensitiveFileSystem()
ASTFilePathResolverisCaseInsensitiveFileSystem in class ASTFilePathResolverpublic IIndexFileLocation resolveASTPath(java.lang.String astPath)
ASTFilePathResolverresolveASTPath in class ASTFilePathResolverpublic IIndexFileLocation resolveIncludeFile(java.lang.String includePath)
ASTFilePathResolvernull if the file does not exist.resolveIncludeFile in class ASTFilePathResolvernull if the file does not exist.public boolean doesIncludeFileExist(java.lang.String includePath)
ASTFilePathResolverdoesIncludeFileExist in class ASTFilePathResolverpublic long getFileSize(java.lang.String astFilePath)
ASTFilePathResolvergetFileSize in class ASTFilePathResolverpublic java.lang.String getASTPath(IIndexFileLocation ifl)
ASTFilePathResolvergetASTPath in class ASTFilePathResolverpublic IScannerInfo getBuildConfiguration(int linkageID, java.lang.Object tu)
IndexerInputAdaptergetBuildConfiguration in class IndexerInputAdapterpublic long getLastModified(IIndexFileLocation ifl)
IndexerInputAdaptergetLastModified in class IndexerInputAdapterpublic long getFileSize(IIndexFileLocation ifl)
IndexerInputAdaptergetFileSize in class IndexerInputAdapterpublic java.lang.String getEncoding(IIndexFileLocation ifl)
IndexerInputAdaptergetEncoding in class IndexerInputAdapterpublic AbstractLanguage[] getLanguages(java.lang.Object tuo,
AbstractIndexerTask.UnusedHeaderStrategy strategy)
IndexerInputAdaptergetLanguages in class IndexerInputAdapterpublic boolean isFileBuildConfigured(java.lang.Object tuo)
IndexerInputAdapterisFileBuildConfigured in class IndexerInputAdapterpublic boolean isIndexedOnlyIfIncluded(java.lang.Object tu)
IndexerInputAdapterisIndexedOnlyIfIncluded in class IndexerInputAdapterpublic boolean isIndexedUnconditionally(IIndexFileLocation ifl)
IndexerInputAdapterisIndexedUnconditionally in class IndexerInputAdapterifl - the location of the filetrue if the file should be indexed unconditionallypublic int getIndexingPriority(IIndexFileLocation ifl)
IndexerInputAdaptergetIndexingPriority in class IndexerInputAdapterifl - the location of the filetrue the indexing prioritypublic boolean isSourceUnit(java.lang.Object tuo)
IndexerInputAdapterisSourceUnit in class IndexerInputAdapterpublic boolean isSource(java.lang.String filename)
ASTFilePathResolverisSource in class ASTFilePathResolverpublic IIndexFileLocation resolveFile(java.lang.Object tuo)
IndexerInputAdapterresolveFile in class IndexerInputAdapterpublic boolean canBePartOfSDK(IIndexFileLocation ifl)
IndexerInputAdaptercanBePartOfSDK in class IndexerInputAdapterpublic java.lang.Object getInputFile(IIndexFileLocation location)
IndexerInputAdapternull, if it does not exist.getInputFile in class IndexerInputAdapterpublic FileContent getCodeReader(java.lang.Object tuo)
IndexerInputAdaptergetCodeReader in class IndexerInputAdapter