Interface CXInclusionVisitorI

  • All Superinterfaces:
    CallbackI, CallbackI.V, Pointer
    All Known Implementing Classes:
    CXInclusionVisitor
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CXInclusionVisitorI
    extends CallbackI.V
    Instances of this interface may be passed to the getInclusions method.

    Type

    
     void (*) (
         CXFile included_file,
         CXSourceLocation *inclusion_stack,
         unsigned include_len,
         CXClientData client_data
     )
    • Method Detail

      • getSignature

        default java.lang.String getSignature()
        Description copied from interface: CallbackI
        Returns the dyncall signature for this callback function. [INTERNAL API]
        Specified by:
        getSignature in interface CallbackI
        Returns:
        the dyncall signature
      • callback

        default void callback​(long args)
        Description copied from interface: CallbackI.V
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.V
        Parameters:
        args - pointer to a DCArgs iterator
      • invoke

        void invoke​(long included_file,
                    long inclusion_stack,
                    int include_len,
                    long client_data)
        Visitor invoked for each file in a translation unit (used with getInclusions).

        This visitor function will be invoked by clang_getInclusions() for each file included (either at the top-level or by #include directives) within a translation unit. The first argument is the file being included, and the second and third arguments provide the inclusion stack. The array is sorted in order of immediate inclusion. For example, the first element refers to the location that included included_file.