Annotation Type Name


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface Name
Names the identifier of a native C++ struct, class, union, function, variable, operator, macro, etc. Without this annotation, Generator guesses the native name based on the name of the Java peer. However, it may sometimes be impossible to use the same name in Java, for example, in the case of overloaded operators or to specify template arguments, while other times we may need to access by name, for example, a callback pointer or function object, from C++. For all those cases, we require this annotation.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The second element gets used as a suffix to work around arrays of anonymous struct or union.
  • Element Details

    • value

      String[] value
      The second element gets used as a suffix to work around arrays of anonymous struct or union.