public class ClangTranslationUnitWrapper extends java.lang.Object
An "index" that consists of a set of translation units that would typically be linked together into an executable or library.
Modifier and Type | Method and Description |
---|---|
static ClangTranslationUnitWrapper |
createForContext(ITokenElementContext context)
Creates a
ClangTranslationUnitWrapper based on the given
ITokenElementContext . |
static ClangTranslationUnitWrapper |
createForText(java.lang.String uniformPath,
java.lang.String text)
Creates a
ClangTranslationUnitWrapper based on the given uniform path
and text content. |
void |
dispose()
Allows to explicitly dispose this wrapper and free native memory.
|
protected void |
finalize() |
eu.cqse.clang.CXCursor |
getMainRootCursor()
Returns a new CXCursor pointing at the root node of the current translation
unit (
getMainTranslationUnit() ). |
eu.cqse.clang.SWIGTYPE_p_CXTranslationUnitImpl |
getMainTranslationUnit()
Returns the current file parsed by clang.
|
public eu.cqse.clang.SWIGTYPE_p_CXTranslationUnitImpl getMainTranslationUnit()
ICheckContext
.public static ClangTranslationUnitWrapper createForContext(ITokenElementContext context) throws ConQATException
ClangTranslationUnitWrapper
based on the given
ITokenElementContext
. This means the text content of the context is
parsed by clang.ConQATException
public static ClangTranslationUnitWrapper createForText(java.lang.String uniformPath, java.lang.String text) throws ConQATException
ClangTranslationUnitWrapper
based on the given uniform path
and text content.ConQATException
protected void finalize()
finalize
in class java.lang.Object
public void dispose()
public eu.cqse.clang.CXCursor getMainRootCursor()
getMainTranslationUnit()
).