Package org.bytedeco.javacpp.annotation


@Export package org.bytedeco.javacpp.annotation
Contains all the annotation classes used by JavaCPP.
  • Annotation Types
    Class
    Description
    Specifies a C++ class to act as an adapter between a target type and one or more adaptee type(s).
    An annotation indicating that a method should behave like an allocator.
    An annotation indicating that a method should behave like an array allocator.
    Indicates that String should be mapped to array of UTF-16 code units (unsigned short*) instead of byte array (const char*).
    Indicates that an argument should get passed or returned by pointer.
    Indicates that an argument gets passed or returned by a pointer to a pointer.
    Indicates that an argument gets passed or returned by a reference to a pointer.
    Indicates that an argument gets passed or returned by reference.
    Indicates that an argument gets passed or returned by value.
    Indicates a type cast required on the argument to satisfy the native compiler.
    A shortcut annotation to Cast that simply adds const to the parameter type, function, or class.
    Specifies the calling convention of a FunctionPointer.
    In some methods, Generator will generate code to transfer arrays from the JVM to native code using the Get/Release<primitivetype>ArrayElements methods.
    Overrides the detection of allocators, getters, and setters.
    Allows using method arguments to call operator[] in some circumstances.
    An annotation indicating that a method should behave like a member getter.
    An annotation indicating that a method should behave like a member setter.
    Names the identifier of a native C++ struct, class, union, function, variable, operator, macro, etc.
    Encloses the scope of a Java class inside the scope of the given C++ namespace.
    By default, all allocators attach a deallocator to the peer object on creation.
    By default, Generator assumes all native functions may throw exceptions.
    By default, Generator applies offsetof() to all member variables.
    This annotation must be used for native types that get declared but not defined.
    A shorthand for @Adapter("OptionalAdapter<type>").
    Defines native properties for a top-level enclosing class as well as indicates classes and methods that should be generated or not, for specified platforms.
    Makes it possible to define more than one set of properties for each platform.
    Allows passing and returning Java objects with native functions and raw JNI types.
    A shorthand for @Adapter("SharedPtrAdapter<type>").
     
    A shorthand for @Adapter("MoveAdapter<type>").
    A shorthand for @Cast("std::string&") @Adapter("StringAdapter<char>").
     
     
    A shorthand for @Adapter("VectorAdapter<type>").
    A shorthand for @Cast("std::wstring&") @Adapter("StringAdapter<wchar_t>").
    A shorthand for @Adapter("UniquePtrAdapter<type>").
    An annotation indicating that a method should behave like a value getter.
    An annotation indicating that a method should behave like a value setter.
    Indicates that a method maps to a virtual function in C++.