Interface TargetedTypeGeneratedStaticRewrite.Parameter

All Superinterfaces:
GeneratedMethodHolder, GeneratedMethodSource<Set<Integer>>, GeneratedStaticRewrite, MethodRewriteRule, RewriteRule, StaticHandlerGeneratedMethodHolder, StaticHandlerGeneratedMethodHolder.Param, StaticRewrite, TargetedTypeGeneratedStaticRewrite
All Known Implementing Classes:
DirectParameterRewrite, FuzzyParameterRewrite
Enclosing interface:
TargetedTypeGeneratedStaticRewrite

public static interface TargetedTypeGeneratedStaticRewrite.Parameter extends TargetedTypeGeneratedStaticRewrite, StaticHandlerGeneratedMethodHolder.Param
  • Method Details

    • targetedMethodMatcher

      TargetedMethodMatcher targetedMethodMatcher()
      Gets the targeted method matcher for the rewrite.
      Returns:
      the targeted method matcher
    • 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