Annotation Interface MethodId


@Target(METHOD) @Retention(SOURCE) public @interface MethodId
An annotation used to uniquely identify a specific method by assigning it an integer ID. This annotation is processed at the source level and is typically used in interfaces annotated with ShizukuInterface or similar use cases.

Each method within a single interface must have a unique ID to avoid duplication errors.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    Returns the unique integer ID that identifies a method annotated with MethodId.
  • Element Details

    • value

      int value
      Returns the unique integer ID that identifies a method annotated with MethodId. This ID must be unique within a single interface to prevent duplication errors.
      Returns:
      the unique method identifier as an integer