Package io.papermc.asm.rules.method
Interface StaticRewrite.Generated.Param
- All Superinterfaces:
GeneratedMethodHolder,GeneratedMethodSource<Set<Integer>>,MethodRewriteRule,OwnableMethodRewriteRule,OwnableMethodRewriteRule.Filtered,OwnableRewriteRule,RewriteRule,StaticRewrite,StaticRewrite.Generated,StaticRewriteGeneratedMethodHolder,StaticRewriteGeneratedMethodHolder.Param
- All Known Implementing Classes:
StaticRewrites.DirectParam,StaticRewrites.FuzzyParam
- Enclosing interface:
- StaticRewrite.Generated
public static interface StaticRewrite.Generated.Param
extends StaticRewrite.Generated, StaticRewriteGeneratedMethodHolder.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.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.RewriteConstructorNested classes/interfaces inherited from interface io.papermc.asm.rules.method.StaticRewrite.Generated
StaticRewrite.Generated.Param, StaticRewrite.Generated.ReturnNested classes/interfaces inherited from interface io.papermc.asm.rules.generate.StaticRewriteGeneratedMethodHolder
StaticRewriteGeneratedMethodHolder.Param, StaticRewriteGeneratedMethodHolder.Return -
Field Summary
Fields inherited from interface io.papermc.asm.rules.generate.GeneratedMethodSource
VOIDFields 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 TypeMethodDescriptiondefault 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.GeneratedMethodSource
generateConstructor, generateMethod, generateReturnValueMethods 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, transformToRedirectDescriptorMethods inherited from interface io.papermc.asm.rules.method.StaticRewrite.Generated
createConstructorRewrite, createRewrite, existingType, methodMatcher, staticRedirectOwnerMethods inherited from interface io.papermc.asm.rules.generate.StaticRewriteGeneratedMethodHolder
staticHandlerMethods inherited from interface io.papermc.asm.rules.generate.StaticRewriteGeneratedMethodHolder.Param
createNewContext, generateParameters
-
Method Details
-
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
-