Record Class FuzzyParameterRewrite

java.lang.Object
java.lang.Record
io.papermc.asm.rules.method.params.FuzzyParameterRewrite
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 FuzzyParameterRewrite(Set<ClassDesc> owners, ClassDesc existingType, TargetedMethodMatcher methodMatcher, Method staticHandler) extends Record implements TargetedTypeGeneratedStaticRewrite.Parameter, OwnableMethodRewriteRule.Filtered
Rewrites matching bytecode to a generated method. The generated method will accept Object params where the legacy type was found. This is what gives it its "fuzziness". The usefulness of this is when only *some* valid parameters need to be converted to a new type, and they don't share inheritance anymore.