Interface TargetedTypeGeneratedStaticRewrite.Return

All Superinterfaces:
GeneratedMethodHolder, GeneratedMethodSource<Void>, GeneratedMethodSource.NoContext, GeneratedStaticRewrite, MethodRewriteRule, RewriteRule, StaticHandlerGeneratedMethodHolder, StaticHandlerGeneratedMethodHolder.Return, StaticRewrite, TargetedTypeGeneratedStaticRewrite
All Known Implementing Classes:
DirectReturnRewrite
Enclosing interface:
TargetedTypeGeneratedStaticRewrite

public static interface TargetedTypeGeneratedStaticRewrite.Return extends TargetedTypeGeneratedStaticRewrite, StaticHandlerGeneratedMethodHolder.Return
  • Method Details

    • transformInvokedDescriptor

      default MethodTypeDesc transformInvokedDescriptor(MethodTypeDesc original, Void context)
      Description copied from interface: GeneratedMethodSource
      Transforms the descriptor of the generated method to the descriptor of the method that will be called within the generated method. This should be the method that actually exists in source.
      Specified by:
      transformInvokedDescriptor in interface GeneratedMethodSource<Void>
      Parameters:
      original - the method descriptor of the generated method that the bytecode was redirected to
      context - context for the generator
      Returns:
      the descriptor of the method that will be called inside the generated method