Interface ClassDefiner

All Known Implementing Classes:
SafeClassDefiner

@Internal @NullMarked public interface ClassDefiner
  • Method Details

    • isBypassAccessChecks

      default boolean isBypassAccessChecks()
      Returns if the defined classes can bypass access checks
      Returns:
      if classes bypass access checks
    • defineClass

      Class<?> defineClass(ClassLoader parentLoader, String name, byte[] data)
      Define a class
      Parameters:
      parentLoader - the parent classloader
      name - the name of the class
      data - the class data to load
      Returns:
      the defined class
      Throws:
      ClassFormatError - if the class data is invalid
      NullPointerException - if any of the arguments are null
    • getInstance

      static ClassDefiner getInstance()