Class CXCompletionResult

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class CXCompletionResult
    extends Struct
    implements NativeResource
    A single result of code completion.

    Member documentation

    • CursorKind – the kind of entity that this completion refers to.

      The cursor kind will be a macro, keyword, or a declaration (one of the *Decl cursor kinds), describing the entity that the completion is referring to.

    • CompletionString – the code-completion string that describes how to insert this code-completion result into the editing buffer


     struct CXCompletionResult {
         enum CXCursorKind CursorKind;
         CXCompletionString CompletionString;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • CXCompletionResult

        public CXCompletionResult​(java.nio.ByteBuffer container)
        Creates a CXCompletionResult instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.