Annotation Type Extend

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String className
      The name of the class to extend.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean isStatic
      Declares whether the annotated method should remain static or not.
    • Element Detail

      • className

        String className
        The name of the class to extend.
      • isStatic

        boolean isStatic
        Declares whether the annotated method should remain static or not.

        When not set, or false, the method will be injected in target class as an instance method (i.e. not static) and its first argument will be removed and used as receiver.

        Returns:
        true if the extended method is static, false otherwise
        Default:
        false