Record Class MethodRewriteRule.RewriteSingle

java.lang.Object
java.lang.Record
io.papermc.asm.rules.method.MethodRewriteRule.RewriteSingle
Record Components:
opcode - the replaced opcode
owner - the replaced owner
name - the replaced name
descriptor - the replaced descriptor
isInterface - if the replaced method is an interface method
isInvokeDynamic - if the replaced method is an invokedynamic
generatorInfo - info for generating the method (optional)
All Implemented Interfaces:
MethodRewriteRule.Rewrite<GeneratedMethodHolder.MethodCallData>
Enclosing interface:
MethodRewriteRule

public static record MethodRewriteRule.RewriteSingle(int opcode, ClassDesc owner, String name, MethodTypeDesc descriptor, boolean isInterface, boolean isInvokeDynamic, @Nullable MethodRewriteRule.GeneratorInfo<GeneratedMethodHolder.MethodCallData> generatorInfo, @Nullable Consumer<Object[]> handleExtras) extends Record implements MethodRewriteRule.Rewrite<GeneratedMethodHolder.MethodCallData>
Holds the structure of the rewritten method that replaces a matching method found in the bytecode.