SafeClassDefinerpublic interface ClassDefiner
| Modifier and Type | Method | Description |
|---|---|---|
@NotNull Class<?> |
defineClass(@NotNull ClassLoader parentLoader,
@NotNull String name,
@org.jetbrains.annotations.NotNull byte[] data) |
Define a class
|
static @NotNull ClassDefiner |
getInstance() |
|
default boolean |
isBypassAccessChecks() |
Returns if the defined classes can bypass access checks
|
default boolean isBypassAccessChecks()
@NotNull @NotNull Class<?> defineClass(@NotNull @NotNull ClassLoader parentLoader, @NotNull @NotNull String name, @NotNull @org.jetbrains.annotations.NotNull 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@NotNull static @NotNull ClassDefiner getInstance()
Copyright © 2020. All rights reserved.