generated from Ecdcaeb/CleanroomIDF
-
Notifications
You must be signed in to change notification settings - Fork 0
TransformerRegistry
Hileb edited this page May 12, 2025
·
4 revisions
TransformerRegistry
is the layer for foundation.
To prevent breakage from API changes, and to provide a pure Lambda experience, it's here.
Recommend use lambda to avoid the using of type name.
IExplicitTransformer is just a Function<byte[], byte[]>
. It may be replaced with other function. So here we just use lambda for it.
public static void registerExplicitTransformer(int priorty, IExplicitTransformer transformer, String... targets)
public static void registerASMExplicitTransformer(int priorty, Consumer<ClassNode> transformer, String... targets)
public static void registerASMExplicitTransformer(Consumer<ClassNode> transformer, String... targets)
public static void registerExplicitTransformer(IExplicitTransformer transformer, String... targets)
public static void registerClassTransformer(IClassTransformer transformer)
public static void unregisterClassTransformer(IClassTransformer transformer)