Package io.papermc.asm.rules.classes
Class ClassToInterfaceRule
java.lang.Object
io.papermc.asm.rules.classes.ClassToInterfaceRule
- All Implemented Interfaces:
RewriteRule,RewriteRule.Delegate
Rewrites all methods on a target class to be interface methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.asm.rules.RewriteRule
RewriteRule.Chain, RewriteRule.ChainBuilder, RewriteRule.Delegate, RewriteRule.GeneratorAdapterFactory -
Field Summary
Fields inherited from interface io.papermc.asm.rules.RewriteRule
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionClassToInterfaceRule(Class<?> owner, @Nullable Class<?> redirectExtension) Rewrites all methods on a target class to be interface methods.ClassToInterfaceRule(ClassDesc owner, @Nullable ClassDesc redirectExtension) Rewrites all methods on a target class to be interface methods. -
Method Summary
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.RewriteRule.Delegate
createVisitor
-
Constructor Details
-
ClassToInterfaceRule
Rewrites all methods on a target class to be interface methods.- Parameters:
owner- the class to targetredirectExtension- an optional new owner for the methods to maintain more compatibility if the bytecode extended the owner type
-
ClassToInterfaceRule
Rewrites all methods on a target class to be interface methods.- Parameters:
owner- the class to targetredirectExtension- an optional new owner for the methods to maintain more compatibility if the bytecode extended the owner type
-
-
Method Details
-
delegate
- Specified by:
delegatein interfaceRewriteRule.Delegate
-