Annotation Interface Method.Index

Enclosing class:
Method

@Retention(RUNTIME) @Target(METHOD) public static @interface Method.Index
Reads the return value of a method on the target class. A method with the same name as the conduit method is used if there is one, otherwise the zero-argument instance method at the given position in declaration order. Falls back to the constructor argument at that index if neither can be evaluated.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The position of the method to read, in declaration order.
  • Element Details

    • value

      int value
      The position of the method to read, in declaration order.
      Returns:
      the method position, counted from zero