public interface ClassDefiner
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
defineClass(ClassLoader parentLoader,
String name,
byte[] data)
Define a class
|
static ClassDefiner |
getInstance() |
default boolean |
isBypassAccessChecks()
Returns if the defined classes can bypass access checks
|
default boolean isBypassAccessChecks()
@NonNull Class<?> defineClass(@NonNull ClassLoader parentLoader, @NonNull String name, @NonNull byte[] data)
parentLoader - the parent classloadername - the name of the classdata - the class data to loadClassFormatError - if the class data is invalidNullPointerException - if any of the arguments are null@NonNull static ClassDefiner getInstance()
Copyright © 2022. All rights reserved.