Package io.papermc.asm.rules.method
Interface StaticRewrite.Generated
- All Superinterfaces:
GeneratedMethodHolder,MethodRewriteRule,OwnableMethodRewriteRule,OwnableMethodRewriteRule.Filtered,OwnableRewriteRule,RewriteRule,StaticRewrite
- All Known Subinterfaces:
StaticRewrite.Generated.Param,StaticRewrite.Generated.Return
- All Known Implementing Classes:
StaticRewrites.DirectParam,StaticRewrites.DirectReturn,StaticRewrites.FuzzyParam
- Enclosing interface:
- StaticRewrite
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceNested classes/interfaces inherited from interface io.papermc.asm.rules.generate.GeneratedMethodHolder
GeneratedMethodHolder.CallData, GeneratedMethodHolder.ConstructorCallData, GeneratedMethodHolder.MethodCallDataNested classes/interfaces inherited from interface io.papermc.asm.rules.method.MethodRewriteRule
MethodRewriteRule.GeneratorInfo<D extends GeneratedMethodHolder.CallData>, MethodRewriteRule.MethodGenerator, MethodRewriteRule.Rewrite<D extends GeneratedMethodHolder.CallData>, MethodRewriteRule.RewriteSingleNested classes/interfaces inherited from interface io.papermc.asm.rules.method.OwnableMethodRewriteRule
OwnableMethodRewriteRule.FilteredNested classes/interfaces inherited from interface io.papermc.asm.rules.RewriteRule
RewriteRule.Chain, RewriteRule.ChainBuilder, RewriteRule.Delegate, RewriteRule.GeneratorAdapterFactoryNested classes/interfaces inherited from interface io.papermc.asm.rules.method.StaticRewrite
StaticRewrite.Generated, StaticRewrite.RewriteConstructor -
Field Summary
Fields inherited from interface io.papermc.asm.rules.method.MethodRewriteRule
LAMBDA_METAFACTORY_OWNERFields inherited from interface io.papermc.asm.rules.RewriteRule
EMPTYFields inherited from interface io.papermc.asm.rules.method.StaticRewrite
CONSTRUCTOR_METHOD_NAME, GENERATED_PREFIX -
Method Summary
Modifier and TypeMethodDescriptioncreateConstructorRewrite(ClassProcessingContext context, MethodTypeDesc intermediateDescriptor, GeneratedMethodHolder.ConstructorCallData originalCallData) Creates a rewrite for the given constructor call data.createRewrite(ClassProcessingContext context, MethodTypeDesc intermediateDescriptor, GeneratedMethodHolder.MethodCallData originalCallData) Creates a rewrite for the given method call data.Gets the "new" type that exists in the current source.Gets the targeted method matcher for the rewrite.default ClassDescMethods inherited from interface io.papermc.asm.rules.generate.GeneratedMethodHolder
generateConstructor, generateMethodMethods inherited from interface io.papermc.asm.rules.method.MethodRewriteRule
createVisitorMethods inherited from interface io.papermc.asm.rules.method.OwnableMethodRewriteRule.Filtered
shouldProcessMethods inherited from interface io.papermc.asm.rules.OwnableRewriteRule
matchesOwner, ownersMethods inherited from interface io.papermc.asm.rules.method.StaticRewrite
rewrite, transformToRedirectDescriptor
-
Method Details
-
existingType
ClassDesc existingType()Gets the "new" type that exists in the current source.- Returns:
- the "new" type from source
-
methodMatcher
TargetedMethodMatcher methodMatcher()Gets the targeted method matcher for the rewrite.- Specified by:
methodMatcherin interfaceOwnableMethodRewriteRule.Filtered- Returns:
- the targeted method matcher
-
staticRedirectOwner
- Specified by:
staticRedirectOwnerin interfaceStaticRewrite
-
createRewrite
default MethodRewriteRule.Rewrite<GeneratedMethodHolder.MethodCallData> createRewrite(ClassProcessingContext context, MethodTypeDesc intermediateDescriptor, GeneratedMethodHolder.MethodCallData originalCallData) Description copied from interface:StaticRewriteCreates a rewrite for the given method call data.- Specified by:
createRewritein interfaceStaticRewrite- Parameters:
context- the contextintermediateDescriptor- the descriptor modified from the original to account for the method call type (interface, virtual, static, etc.)originalCallData- the original method call data- Returns:
- the rewrite
-
createConstructorRewrite
default MethodRewriteRule.Rewrite<GeneratedMethodHolder.ConstructorCallData> createConstructorRewrite(ClassProcessingContext context, MethodTypeDesc intermediateDescriptor, GeneratedMethodHolder.ConstructorCallData originalCallData) Description copied from interface:StaticRewriteCreates a rewrite for the given constructor call data.- Specified by:
createConstructorRewritein interfaceStaticRewrite- Parameters:
context- the contextintermediateDescriptor- the descriptor modified from the original to include a return typeoriginalCallData- the original constructor call data- Returns:
- the rewrite
-