Record Class SimpleRewrite

java.lang.Object
java.lang.Record
io.papermc.asm.rules.method.rewrite.SimpleRewrite
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:
MethodRewrite<GeneratedMethodHolder.MethodCallData>

public record SimpleRewrite(int opcode, ClassDesc owner, String name, MethodTypeDesc descriptor, boolean isInterface, boolean isInvokeDynamic, @Nullable MethodRewrite.GeneratorInfo<GeneratedMethodHolder.MethodCallData> generatorInfo, @Nullable Consumer<Object[]> handleExtras) extends Record implements MethodRewrite<GeneratedMethodHolder.MethodCallData>
Holds the structure of the rewritten method that replaces a matching method found in the bytecode. This is for non-constructors. For constructors, use ConstructorRewrite.