Annotation Type TransformWith


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface TransformWith
    Used to indicate a method that will be called from the method with the corresponding TransformResult annotation.

    This annotation should be placed on the method with the least specific return type, if covariant return types are used.

    The method annotated with this annotation must either return an instance of the method's class, or Object (for compatibility with generics).

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      Gets the name used to match this annotation to a TransformResult annotation.
    • Element Detail

      • value

        java.lang.String value
        Gets the name used to match this annotation to a TransformResult annotation.

        Changing this is only necessary when this annotation is present on multiple methods in a class, or its superinterfaces/superclass.

        Returns:
        The name to use
        Default:
        ""