Package io.papermc.asm.rules.method
Interface MethodRewriteRule
- All Superinterfaces:
RewriteRule
- All Known Subinterfaces:
FilteredMethodRewriteRule,StaticRewrite,StaticRewrite.Generated,StaticRewrite.Generated.Param,StaticRewrite.Generated.Return
- All Known Implementing Classes:
MethodRewrites.SubTypeReturn,MethodRewrites.SuperTypeParam,StaticRewrite.Plain,StaticRewrites.DirectParam,StaticRewrites.FuzzyParam
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic final recordNested classes/interfaces inherited from interface io.papermc.asm.rules.RewriteRule
RewriteRule.Chain, RewriteRule.ChainBuilder, RewriteRule.MethodGeneratorFactory -
Field Summary
FieldsFields inherited from interface io.papermc.asm.rules.RewriteRule
EMPTY -
Method Summary
Modifier and TypeMethodDescriptiondefault ClassVisitorcreateVisitor(int api, ClassVisitor parent, ClassProcessingContext context) rewrite(ClassProcessingContext context, boolean invokeDynamic, int opcode, String owner, String name, MethodTypeDesc descriptor, boolean isInterface) default booleanshouldProcess(ClassProcessingContext context, int opcode, String owner, String name, String descriptor, boolean isInterface) Methods inherited from interface io.papermc.asm.rules.RewriteRule
generateMethods
-
Field Details
-
LAMBDA_METAFACTORY_OWNER
- See Also:
-
-
Method Details
-
shouldProcess
default boolean shouldProcess(ClassProcessingContext context, int opcode, String owner, String name, String descriptor, boolean isInterface) -
createVisitor
- Specified by:
createVisitorin interfaceRewriteRule
-
rewrite
@Nullable MethodRewriteRule.Rewrite rewrite(ClassProcessingContext context, boolean invokeDynamic, int opcode, String owner, String name, MethodTypeDesc descriptor, boolean isInterface)
-