indexSourceFile and indexTranslationUnit.
struct IndexerCallbacks {
int (*abortQuery) (CXClientData client_data, void *reserved);
void (*diagnostic) (CXClientData client_data, CXDiagnosticSet diagnosticSet, void *reserved);
CXIdxClientFile (*enteredMainFile) (CXClientData client_data, CXFile mainFile, void *reserved);
CXIdxClientFile (*ppIncludedFile) (CXClientData client_data, CXIdxIncludedFileInfo const *info);
CXIdxClientASTFile (*importedASTFile) (CXClientData client_data, CXIdxImportedASTFileInfo const *info);
CXIdxClientContainer (*startedTranslationUnit) (CXClientData client_data, void *reserved);
void (*indexDeclaration) (CXClientData client_data, CXIdxDeclInfo const *info);
void (*indexEntityReference) (CXClientData client_data, CXIdxEntityRefInfo const *info);
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | IndexerCallbacks.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ABORTQUERY
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DIAGNOSTIC
The struct member offsets. |
| public static final int | ENTEREDMAINFILE
The struct member offsets. |
| public static final int | IMPORTEDASTFILE
The struct member offsets. |
| public static final int | INDEXDECLARATION
The struct member offsets. |
| public static final int | INDEXENTITYREFERENCE
The struct member offsets. |
| public static final int | PPINCLUDEDFILE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STARTEDTRANSLATIONUNIT
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | IndexerCallbacks(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public IndexerAbortQuery | |
| public static IndexerCallbacks | |
| public static IndexerCallbacks. | calloc(int
the buffer capacity capacity)Returns a new |
| public static IndexerCallbacks | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static IndexerCallbacks. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static IndexerCallbacks | |
| public static IndexerCallbacks | |
| public static IndexerCallbacks. | |
| public static IndexerCallbacks. | |
| protected IndexerCallbacks | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static IndexerCallbacks | |
| public static IndexerCallbacks | |
| public static IndexerCallbacks. | create(int
the buffer capacity capacity)Returns a new |
| public static IndexerCallbacks. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static IndexerCallbacks | |
| public static IndexerCallbacks. | |
| public IndexerDiagnostic | |
| public IndexerEnteredMainFile | |
| public IndexerImportedASTFile | |
| public IndexerIndexDeclaration | |
| public IndexerIndexEntityReference | |
| public static IndexerCallbacks | |
| public static IndexerCallbacks. | malloc(int
the buffer capacity capacity)Returns a new |
| public static IndexerCallbacks | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static IndexerCallbacks. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static IndexerCallbacks | |
| public static IndexerCallbacks | |
| public static IndexerCallbacks. | |
| public static IndexerCallbacks. | |
| public static IndexerAbortQuery | |
| public static IndexerDiagnostic | |
| public static IndexerEnteredMainFile | |
| public static IndexerImportedASTFile | |
| public static IndexerIndexDeclaration | |
| public static IndexerIndexEntityReference | |
| public static IndexerIncludedFile | |
| public static IndexerStartedTranslationUnit | |
| public IndexerIncludedFile | |
| public int | |
| public IndexerStartedTranslationUnit |
| ABORTQUERY | back to summary |
|---|---|
| public static final int ABORTQUERY The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DIAGNOSTIC | back to summary |
|---|---|
| public static final int DIAGNOSTIC The struct member offsets. | |
| ENTEREDMAINFILE | back to summary |
|---|---|
| public static final int ENTEREDMAINFILE The struct member offsets. | |
| IMPORTEDASTFILE | back to summary |
|---|---|
| public static final int IMPORTEDASTFILE The struct member offsets. | |
| INDEXDECLARATION | back to summary |
|---|---|
| public static final int INDEXDECLARATION The struct member offsets. | |
| INDEXENTITYREFERENCE | back to summary |
|---|---|
| public static final int INDEXENTITYREFERENCE The struct member offsets. | |
| PPINCLUDEDFILE | back to summary |
|---|---|
| public static final int PPINCLUDEDFILE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STARTEDTRANSLATIONUNIT | back to summary |
|---|---|
| public static final int STARTEDTRANSLATIONUNIT The struct member offsets. | |
| IndexerCallbacks | back to summary |
|---|---|
| protected IndexerCallbacks(long address, ByteBuffer container) | |
| IndexerCallbacks | back to summary |
|---|---|
| public IndexerCallbacks(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| abortQuery | back to summary |
|---|---|
| public IndexerAbortQuery abortQuery() called periodically to check whether indexing should be aborted. Should return 0 to continue, and non-zero to abort.
| |
| calloc | back to summary |
|---|---|
| public static IndexerCallbacks calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static IndexerCallbacks. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static IndexerCallbacks calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static IndexerCallbacks. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static IndexerCallbacks callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static IndexerCallbacks callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static IndexerCallbacks. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static IndexerCallbacks. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected IndexerCallbacks create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static IndexerCallbacks create() Returns a new | |
| create | back to summary |
|---|---|
| public static IndexerCallbacks create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static IndexerCallbacks. Returns a new
| |
| create | back to summary |
|---|---|
| public static IndexerCallbacks. Create a
| |
| createSafe | back to summary |
|---|---|
| public static IndexerCallbacks createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static IndexerCallbacks. Like
| |
| diagnostic | back to summary |
|---|---|
| public IndexerDiagnostic diagnostic() called at the end of indexing; passes the complete diagnostic set.
| |
| enteredMainFile | back to summary |
|---|---|
public IndexerEnteredMainFile enteredMainFile()
| |
| importedASTFile | back to summary |
|---|---|
| public IndexerImportedASTFile importedASTFile() Called when a AST file (PCH or module) gets imported. AST files will not get indexed (there will not be callbacks to index all the entities in an AST file). The recommended action is that, if the AST file is not already indexed, to initiate a new indexing job specific to the AST file.
| |
| indexDeclaration | back to summary |
|---|---|
public IndexerIndexDeclaration indexDeclaration()
| |
| indexEntityReference | back to summary |
|---|---|
| public IndexerIndexEntityReference indexEntityReference() called to index a reference of an entity
| |
| malloc | back to summary |
|---|---|
| public static IndexerCallbacks malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static IndexerCallbacks. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static IndexerCallbacks malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static IndexerCallbacks. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static IndexerCallbacks mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static IndexerCallbacks mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static IndexerCallbacks. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static IndexerCallbacks. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nabortQuery | back to summary |
|---|---|
| public static IndexerAbortQuery nabortQuery(long struct) Unsafe version of | |
| ndiagnostic | back to summary |
|---|---|
| public static IndexerDiagnostic ndiagnostic(long struct) Unsafe version of | |
| nenteredMainFile | back to summary |
|---|---|
| public static IndexerEnteredMainFile nenteredMainFile(long struct) Unsafe version of | |
| nimportedASTFile | back to summary |
|---|---|
| public static IndexerImportedASTFile nimportedASTFile(long struct) Unsafe version of | |
| nindexDeclaration | back to summary |
|---|---|
| public static IndexerIndexDeclaration nindexDeclaration(long struct) Unsafe version of | |
| nindexEntityReference | back to summary |
|---|---|
| public static IndexerIndexEntityReference nindexEntityReference(long struct) Unsafe version of | |
| nppIncludedFile | back to summary |
|---|---|
| public static IndexerIncludedFile nppIncludedFile(long struct) Unsafe version of | |
| nstartedTranslationUnit | back to summary |
|---|---|
| public static IndexerStartedTranslationUnit nstartedTranslationUnit(long struct) Unsafe version of | |
| ppIncludedFile | back to summary |
|---|---|
| public IndexerIncludedFile ppIncludedFile() called when a file gets
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| startedTranslationUnit | back to summary |
|---|---|
| public IndexerStartedTranslationUnit startedTranslationUnit() called at the beginning of indexing a translation unit
| |
IndexerCallbacks structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final IndexerCallbacks |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public IndexerAbortQuery | |
| public IndexerDiagnostic | |
| public IndexerEnteredMainFile | |
| protected IndexerCallbacks | |
| public IndexerImportedASTFile | |
| public IndexerIndexDeclaration | |
| public IndexerIndexEntityReference | |
| public IndexerIncludedFile | |
| protected IndexerCallbacks. | |
| public IndexerStartedTranslationUnit |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final IndexerCallbacks ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| abortQuery | back to summary |
|---|---|
public IndexerAbortQuery abortQuery()
| |
| diagnostic | back to summary |
|---|---|
public IndexerDiagnostic diagnostic()
| |
| enteredMainFile | back to summary |
|---|---|
public IndexerEnteredMainFile enteredMainFile()
| |
| getElementFactory | back to summary |
|---|---|
| protected IndexerCallbacks getElementFactory() Implements abstract org.
| |
| importedASTFile | back to summary |
|---|---|
public IndexerImportedASTFile importedASTFile()
| |
| indexDeclaration | back to summary |
|---|---|
public IndexerIndexDeclaration indexDeclaration()
| |
| indexEntityReference | back to summary |
|---|---|
public IndexerIndexEntityReference indexEntityReference()
| |
| ppIncludedFile | back to summary |
|---|---|
public IndexerIncludedFile ppIncludedFile()
| |
| self | back to summary |
|---|---|
| protected IndexerCallbacks. Implements abstract org.
| |
| startedTranslationUnit | back to summary |
|---|---|
public IndexerStartedTranslationUnit startedTranslationUnit()
| |