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, hasPragmaOnceSemantics
static final IIndexFile[] EMPTY_FILE_ARRAY
IIndexFileLocation getLocation() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IIndexInclude[] getIncludes() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IIndexMacro[] getMacros() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
ICPPUsingDirective[] getUsingDirectives() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
long getTimestamp() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
long getSourceReadTime() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
long 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.CoreException
IIndexName[] findNames(int offset, int length) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IIndexInclude getParsedInContext() throws org.eclipse.core.runtime.CoreException
null
.org.eclipse.core.runtime.CoreException
int getLinkageID() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
String 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.CoreException
String toDebugString()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.