Interface StaticRewrite.Generated.Param

All Superinterfaces:
GeneratedMethodHolder, GeneratedMethodSource<Set<Integer>>, MethodRewriteRule, OwnableMethodRewriteRule, OwnableMethodRewriteRule.Filtered, OwnableRewriteRule, RewriteRule, StaticRewrite, StaticRewrite.Generated, StaticRewriteGeneratedMethodHolder, StaticRewriteGeneratedMethodHolder.Param
All Known Implementing Classes:
StaticRewrites.DirectParam, StaticRewrites.FuzzyParam
Enclosing interface:
StaticRewrite.Generated

public static interface StaticRewrite.Generated.Param extends StaticRewrite.Generated, StaticRewriteGeneratedMethodHolder.Param
  • Method Details

    • transformInvokedDescriptor

      default MethodTypeDesc transformInvokedDescriptor(MethodTypeDesc original, Set<Integer> 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<Set<Integer>>
      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