Annotation Type Variadic


@Retention(RUNTIME)
@Target(METHOD)
public @interface Variadic
Used to specify the index of the first va_arg parameter in a Bridge method. The parameter and all following parameters will be replaced by ... when generating the native function signature. For static methods the index specified in this annotation has to be 1 or greater. Bro does not support passing variable number of arguments. The Java signature still needs to have a fixed number of parameters but the target native function can be a function which can take a variable number of arguments (e.g. printf(char *, ...)).
  • Required Element Summary

    Required Elements
    Modifier and Type Required Element Description
    int value
    The index of the first va_arg parameter.
  • Element Details

    • value

      int value
      The index of the first va_arg parameter. Must be >0 for static methods.