Record Class DirectParameterRewrite

java.lang.Object
java.lang.Record
io.papermc.asm.rules.method.params.DirectParameterRewrite
Record Components:
owners - the owners to target
existingType - the type to convert to
methodMatcher - the method matcher to use which targets the legacy param type
staticHandler - the method which will be used to convert the legacy type to the new type
All Implemented Interfaces:
GeneratedMethodHolder, GeneratedMethodSource<Set<Integer>>, StaticHandlerGeneratedMethodHolder, StaticHandlerGeneratedMethodHolder.Param, GeneratedStaticRewrite, TargetedTypeGeneratedStaticRewrite, TargetedTypeGeneratedStaticRewrite.Parameter, MethodRewriteRule, OwnableMethodRewriteRule, OwnableMethodRewriteRule.Filtered, StaticRewrite, OwnableRewriteRule, RewriteRule

public record DirectParameterRewrite(Set<ClassDesc> owners, ClassDesc existingType, TargetedMethodMatcher methodMatcher, Method staticHandler) extends Record implements TargetedTypeGeneratedStaticRewrite.Parameter, OwnableMethodRewriteRule.Filtered
Rewrites matching bytecode to a generated method which will invoke the static handler on all parameters that need to be converted. That generated method then calls the original method with the new parameters.