Class SafeClassDefiner

java.lang.Object
com.destroystokyo.paper.event.executor.asm.SafeClassDefiner
All Implemented Interfaces:
ClassDefiner

@Internal @NullMarked public class SafeClassDefiner extends Object implements ClassDefiner
  • Method Details

    • defineClass

      public Class<?> defineClass(ClassLoader parentLoader, String name, byte[] data)
      Description copied from interface: ClassDefiner
      Define a class
      Specified by:
      defineClass in interface ClassDefiner
      Parameters:
      parentLoader - the parent classloader
      name - the name of the class
      data - the class data to load
      Returns:
      the defined class