Annotation Interface Argument.Named

Enclosing class:
Argument

@Retention(RUNTIME) @Target(METHOD) public static @interface Argument.Named
Looks the method up on the target class under a different name. Useful when a field or method in the scanned class has a name that would make a poor Java method name, or clashes with another one.
@Argument.Named("r")
Integer red();
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name to look up on the target class in place of the method's own.
  • Element Details

    • value

      String value
      The name to look up on the target class in place of the method's own.
      Returns:
      the field or method name on the target class