Interface TargetedTypeGeneratedStaticRewrite.Parameter
- All Superinterfaces:
GeneratedMethodHolder,GeneratedMethodSource<Set<Integer>>,GeneratedStaticRewrite,MethodRewriteRule,RewriteRule,StaticHandlerGeneratedMethodHolder,StaticHandlerGeneratedMethodHolder.Param,StaticRewrite,TargetedTypeGeneratedStaticRewrite
- All Known Implementing Classes:
DirectParameterRewrite,FuzzyParameterRewrite
- Enclosing interface:
- TargetedTypeGeneratedStaticRewrite
public static interface TargetedTypeGeneratedStaticRewrite.Parameter
extends TargetedTypeGeneratedStaticRewrite, StaticHandlerGeneratedMethodHolder.Param
-
Nested Class Summary
Nested 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.generate.GeneratedMethodSource
GeneratedMethodSource.NoContextNested 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.generate.StaticHandlerGeneratedMethodHolder
StaticHandlerGeneratedMethodHolder.Param, StaticHandlerGeneratedMethodHolder.ReturnNested classes/interfaces inherited from interface io.papermc.asm.rules.method.generated.TargetedTypeGeneratedStaticRewrite
TargetedTypeGeneratedStaticRewrite.Parameter, TargetedTypeGeneratedStaticRewrite.Return -
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 -
Method Summary
Modifier and TypeMethodDescriptionGets the targeted method matcher for the rewrite.default MethodTypeDesctransformInvokedDescriptor(MethodTypeDesc original, Set<Integer> context) Transforms the descriptor of the generated method to the descriptor of the method that will be called within the generated method.Methods inherited from interface io.papermc.asm.rules.generate.GeneratedMethodHolder
createAdapterMethods inherited from interface io.papermc.asm.rules.generate.GeneratedMethodSource
generateConstructor, generateMethod, generateReturnValueMethods inherited from interface io.papermc.asm.rules.method.generated.GeneratedStaticRewrite
createConstructorRewrite, createRewrite, staticRedirectOwnerMethods inherited from interface io.papermc.asm.rules.method.MethodRewriteRule
createVisitor, shouldProcessMethods inherited from interface io.papermc.asm.rules.generate.StaticHandlerGeneratedMethodHolder
staticHandlerMethods inherited from interface io.papermc.asm.rules.generate.StaticHandlerGeneratedMethodHolder.Param
createNewContext, generateParametersMethods inherited from interface io.papermc.asm.rules.method.StaticRewrite
rewrite, transformToRedirectDescriptorMethods inherited from interface io.papermc.asm.rules.method.generated.TargetedTypeGeneratedStaticRewrite
existingType
-
Method Details
-
methodMatcher
TargetedMethodMatcher methodMatcher()Gets the targeted method matcher for the rewrite.- Returns:
- the targeted method matcher
-
transformInvokedDescriptor
Description copied from interface:GeneratedMethodSourceTransforms the descriptor of the generated method to the descriptor of the method that will be called within the generated method. This should be the method that actually exists in source.- Specified by:
transformInvokedDescriptorin interfaceGeneratedMethodSource<Set<Integer>>- Parameters:
original- the method descriptor of the generated method that the bytecode was redirected tocontext- context for the generator- Returns:
- the descriptor of the method that will be called inside the generated method
-