public interface IIndexFile extends IFileNomination
| Modifier and Type | Field and Description |
|---|---|
static IIndexFile[] |
EMPTY_FILE_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
IIndexName[] |
findNames(int offset,
int length)
Find all names within the given range.
|
long |
getContentsHash()
Hash of the file contents when the file was indexed.
|
int |
getEncodingHashcode()
Deprecated.
Returns 0.
|
IIndexInclude[] |
getIncludes()
Returns all includes found in this file.
|
int |
getLinkageID()
Returns the id of the linkage this file was parsed in.
|
IIndexFileLocation |
getLocation()
Returns an IIndexFileLocation representing the location of this file
|
IIndexMacro[] |
getMacros()
Returns all macros defined in this file.
|
IIndexInclude |
getParsedInContext()
Returns the include that was used to parse this file, may be
null. |
String |
getReplacementHeader()
Returns the name of the replacement header obtained from
@headername{header} or
from IWYU pragma: private, include "header". |
int |
getScannerConfigurationHashcode()
Deprecated.
Returns 0.
|
long |
getSourceReadTime()
Time when the file was read during indexing.
|
long |
getTimestamp()
Last modification of file before it was indexed.
|
ICPPUsingDirective[] |
getUsingDirectives()
Returns all using directives for namespaces and global scope, found in this file.
|
String |
toDebugString()
Returns detailed information about the file.
|
getSignificantMacros, hasPragmaOnceSemanticsstatic final IIndexFile[] EMPTY_FILE_ARRAY
IIndexFileLocation getLocation() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionIIndexInclude[] getIncludes() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionIIndexMacro[] getMacros() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionICPPUsingDirective[] getUsingDirectives() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionlong getTimestamp()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionlong getSourceReadTime()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionlong getContentsHash()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException@Deprecated int getScannerConfigurationHashcode() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException@Deprecated int getEncodingHashcode() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionIIndexName[] findNames(int offset, int length) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionIIndexInclude getParsedInContext() throws org.eclipse.core.runtime.CoreException
null.org.eclipse.core.runtime.CoreExceptionint getLinkageID()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionString getReplacementHeader() throws org.eclipse.core.runtime.CoreException
@headername{header} or
from IWYU pragma: private, include "header". Returns an empty string if the file
contained IWYU pragma: private without a replacement header. Returns null if
the file does not contain @headername{header} or IWYU pragma: private.org.eclipse.core.runtime.CoreExceptionString toDebugString()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.