Annotation Type Injector


  • @Retention(CLASS)
    @Target(METHOD)
    public @interface Injector
    Marks a method as the injector method for purposes of generation. The method itself should take in as parameters a ClassNode and a MethodNode (from the ObjectWeb ASM library), or only a MethodNode. The annotation will be ignored otherwise. It will also be discarded unless the containing class is annotated with Patch and at least another method within the class is annotated with Target. This annotation may be added multiple times, in order to target multiple methods.
    See Also:
    Patch, Target
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String reason  
    • Element Detail

      • reason

        java.lang.String reason
        Returns:
        the patching reason, for logging, defaults to "No reason specified."
        Since:
        0.5.0
        Default:
        "No reason specified."