public interface ClassDefiner
Modifier and Type | Method and Description |
---|---|
@NotNull Class<?> |
defineClass(@NotNull ClassLoader parentLoader,
@NotNull String name,
@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 @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 © 2021. All rights reserved.