Class KnotClassDelegateTransformer

java.lang.Object
eu.cloudnetservice.wrapper.transform.fabric.KnotClassDelegateTransformer
All Implemented Interfaces:
Transformer

public final class KnotClassDelegateTransformer extends Object implements Transformer
  • Constructor Details

    • KnotClassDelegateTransformer

      public KnotClassDelegateTransformer()
  • Method Details

    • transform

      public void transform(@NonNull @NonNull String classname, @NonNull @NonNull org.objectweb.asm.tree.ClassNode classNode)
      Description copied from interface: Transformer
      Applies the transformation to the given class node. The passed in class node will get re-encoded and represents the class after transformation (and therefore will be the final defined class).

      This transformer is only called once, after that this transformer will automatically get removed from the registered transformers (as the class is defined and transformers will never handle re-transformations).

      Specified by:
      transform in interface Transformer
      Parameters:
      classname - the fully qualified name of the transforming class.
      classNode - the class node in its original form, before any transformation was applied to it.
    • findStoreLoadedClassInstruction

      @Nullable private @Nullable org.objectweb.asm.tree.VarInsnNode findStoreLoadedClassInstruction(@NonNull @NonNull org.objectweb.asm.tree.InsnList list)