Package io.papermc.asm.rules.builder
Class ConfiguredRuleFactoryImpl
java.lang.Object
io.papermc.asm.rules.builder.ConfiguredRuleFactoryImpl
- All Implemented Interfaces:
ConfiguredRuleFactory,RuleFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.asm.rules.builder.ConfiguredRuleFactory
ConfiguredRuleFactory.FactoryNested classes/interfaces inherited from interface io.papermc.asm.rules.builder.RuleFactory
RuleFactory.Factory -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRule(RewriteRule rule) build()voidchangeFieldToMethod(@Nullable String getterName, @Nullable String setterName, boolean isInterfaceMethod, Consumer<? super FieldMatcherBuilder> builderConsumer) voidchangeParamDirect(ClassDesc newParamType, Method staticHandler, TargetedMethodMatcher targetedMethodMatcher) voidchangeParamFuzzy(ClassDesc newParamType, Method staticHandler, TargetedMethodMatcher targetedMethodMatcher) voidchangeParamToSuper(ClassDesc newParamType, TargetedMethodMatcher methodMatcher) voidchangeReturnTypeDirect(ClassDesc newReturnType, Method staticHandler, TargetedMethodMatcher targetedMethodMatcher) voidchangeReturnTypeDirectWithContext(ClassDesc newReturnType, Method staticHandler, TargetedMethodMatcher targetedMethodMatcher) voidchangeReturnTypeToSub(ClassDesc newReturnType, TargetedMethodMatcher methodMatcher) voidmoveInstanceMethod(ClassDesc newOwner, String newMethodName, MethodMatcher methodMatcher) voidplainStaticRewrite(MethodMatcher methodMatcher) voidplainStaticRewrite(ClassDesc newOwner, MethodMatcher methodMatcher) voidplainStaticRewrite(ClassDesc newOwner, MethodMatcher methodMatcher, String staticMethodName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.papermc.asm.rules.builder.RuleFactory
addRule, build, changeFieldToMethod, changeParamDirect, changeParamDirect, changeParamFuzzy, changeParamFuzzy, changeParamToSuper, changeParamToSuper, changeReturnTypeDirect, changeReturnTypeDirect, changeReturnTypeDirectWithContext, changeReturnTypeDirectWithContext, changeReturnTypeToSub, changeReturnTypeToSub, moveInstanceMethod, moveInstanceMethod, plainStaticRewrite, plainStaticRewrite
-
Method Details
-
plainStaticRewrite
- Specified by:
plainStaticRewritein interfaceConfiguredRuleFactory
-
plainStaticRewrite
- Specified by:
plainStaticRewritein interfaceRuleFactory
-
plainStaticRewrite
public void plainStaticRewrite(ClassDesc newOwner, MethodMatcher methodMatcher, String staticMethodName) - Specified by:
plainStaticRewritein interfaceRuleFactory
-
changeParamToSuper
- Specified by:
changeParamToSuperin interfaceRuleFactory
-
changeParamFuzzy
public void changeParamFuzzy(ClassDesc newParamType, Method staticHandler, TargetedMethodMatcher targetedMethodMatcher) - Specified by:
changeParamFuzzyin interfaceRuleFactory
-
changeParamDirect
public void changeParamDirect(ClassDesc newParamType, Method staticHandler, TargetedMethodMatcher targetedMethodMatcher) - Specified by:
changeParamDirectin interfaceRuleFactory
-
changeReturnTypeToSub
- Specified by:
changeReturnTypeToSubin interfaceRuleFactory
-
changeReturnTypeDirect
public void changeReturnTypeDirect(ClassDesc newReturnType, Method staticHandler, TargetedMethodMatcher targetedMethodMatcher) - Specified by:
changeReturnTypeDirectin interfaceRuleFactory
-
changeReturnTypeDirectWithContext
public void changeReturnTypeDirectWithContext(ClassDesc newReturnType, Method staticHandler, TargetedMethodMatcher targetedMethodMatcher) - Specified by:
changeReturnTypeDirectWithContextin interfaceRuleFactory
-
changeFieldToMethod
public void changeFieldToMethod(@Nullable String getterName, @Nullable String setterName, boolean isInterfaceMethod, Consumer<? super FieldMatcherBuilder> builderConsumer) - Specified by:
changeFieldToMethodin interfaceRuleFactory
-
moveInstanceMethod
public void moveInstanceMethod(ClassDesc newOwner, String newMethodName, MethodMatcher methodMatcher) - Specified by:
moveInstanceMethodin interfaceRuleFactory
-
addRule
- Specified by:
addRulein interfaceRuleFactory
-
build
- Specified by:
buildin interfaceRuleFactory
-