Annotation Type Patch


  • @Retention(CLASS)
    @Target(TYPE)
    public @interface Patch
    Marks the class as containing an injector for a user-specified Class. It will be discarded unless Target and Injector are properly placed within the annotated class.
    See Also:
    Target, Injector
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<?> value  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] inner
      This contains the inner class name(s) to append, separated by a $ symbol, to the already acquired fully-qualified name.
    • Element Detail

      • value

        java.lang.Class<?> value
        Returns:
        the Class to target for patching
      • inner

        java.lang.String[] inner
        This contains the inner class name(s) to append, separated by a $ symbol, to the already acquired fully-qualified name. If a number is provided instead of a valid name, the class will be treated as an anonymous class, and will therefore be skipped in verification.
        Returns:
        the name or path of the inner class that contain the target, defaults to array containing a single empty string (not an inner class)
        Since:
        0.5.0
        Default:
        {}