Package io.papermc.asm.rules.generate
Interface GeneratedMethodHolder
- All Known Subinterfaces:
GeneratedMethodSource<C>,GeneratedMethodSource.NoContext,GeneratedStaticRewrite,StaticHandlerGeneratedMethodHolder,StaticHandlerGeneratedMethodHolder.Param,StaticHandlerGeneratedMethodHolder.Return,TargetedTypeGeneratedStaticRewrite,TargetedTypeGeneratedStaticRewrite.Parameter,TargetedTypeGeneratedStaticRewrite.Return
- All Known Implementing Classes:
DirectParameterRewrite,DirectReturnRewrite,FuzzyParameterRewrite,MoveInstanceMethod
public interface GeneratedMethodHolder
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptiondefault GeneratorAdaptercreateAdapter(RewriteRule.GeneratorAdapterFactory factory, GeneratedMethodHolder.MethodCallData modified) voidgenerateConstructor(RewriteRule.GeneratorAdapterFactory factory, GeneratedMethodHolder.MethodCallData modified, GeneratedMethodHolder.ConstructorCallData original) voidgenerateMethod(RewriteRule.GeneratorAdapterFactory factory, GeneratedMethodHolder.MethodCallData modified, GeneratedMethodHolder.MethodCallData original) Generates a method with the provided information.static voidloadParameters(GeneratorAdapter adapter, MethodTypeDesc descriptor)
-
Method Details
-
loadParameters
-
createAdapter
default GeneratorAdapter createAdapter(RewriteRule.GeneratorAdapterFactory factory, GeneratedMethodHolder.MethodCallData modified) -
generateMethod
void generateMethod(RewriteRule.GeneratorAdapterFactory factory, GeneratedMethodHolder.MethodCallData modified, GeneratedMethodHolder.MethodCallData original) Generates a method with the provided information.- Parameters:
factory- the factory for method generationmodified- the method call information that replaced the matching method in bytecodeoriginal- the original method that was matched in the bytecode
-
generateConstructor
void generateConstructor(RewriteRule.GeneratorAdapterFactory factory, GeneratedMethodHolder.MethodCallData modified, GeneratedMethodHolder.ConstructorCallData original)
-