public final class ClassDefining
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Class<?> |
define(java.lang.Class<?> hostClass,
byte[] bytecode)
Defines a new class relative to the host.
|
static boolean |
hasPackageAccess()
Returns true if the ClassDefiner has access to package-private members.
|
static boolean |
isAnonymousHost(java.lang.Class<?> hostClass)
Does the given class host new types anonymously, meaning they are not visible by name?
|
public static java.lang.Class<?> define(java.lang.Class<?> hostClass,
byte[] bytecode)
throws java.lang.Exception
java.lang.Exceptionpublic static boolean hasPackageAccess()
public static boolean isAnonymousHost(java.lang.Class<?> hostClass)