ClassLoader#defineClass(String, byte[], int, int).
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final DefineClassHelper. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Class | toClass(String
the name of the loaded class. className, Class<?> the class contained in the same package as the loaded class. neighbor, ClassLoader the class loader. It can be null if loader, ProtectionDomain neighbor is not null
and the JVM is Java 11 or later.if it is null, a default domain is used. domain, byte[] the bytecode for the loaded class. bcode)Loads a class file by a given class loader. |
| public static Class | |
| public static Class | toClass(MethodHandles.
the bytecode. bcode)Loads a class file by |
| pack-priv static Class | toPublicClass(String className, byte[] bcode)
Loads a class file by |
| privileged | back to summary |
|---|---|
| private static final DefineClassHelper. | |
| DefineClassHelper | back to summary |
|---|---|
| private DefineClassHelper() | |
| toClass | back to summary |
|---|---|
| public static Class Loads a class file by a given class loader. This first tries to use
| |
| toClass | back to summary |
|---|---|
| public static Class Loads a class file by
| |
| toClass | back to summary |
|---|---|
| public static Class Loads a class file by
| |
| toPublicClass | back to summary |
|---|---|
| pack-priv static Class Loads a class file by
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract Class | defineClass(String name, byte[] b, int off, int len, Class<?> neighbor, ClassLoader loader, ProtectionDomain protectionDomain)
|
| Helper | back to summary |
|---|---|
| private Helper() | |
| defineClass | back to summary |
|---|---|
| pack-priv abstract Class | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Class | defineClass(String name, byte[] bcode, int off, int len, Class<?> neighbor, ClassLoader loader, ProtectionDomain protectionDomain)
Overrides javassist.
|
| Java11 | back to summary |
|---|---|
| private Java11() | |
| defineClass | back to summary |
|---|---|
| pack-priv Class Overrides javassist. | |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodHandle | |
| private final SecurityActions | stack
Deprecated
as a consequence of
SecurityActions being deprecated.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Class | defineClass(String name, byte[] b, int off, int len, Class<?> neighbor, ClassLoader loader, ProtectionDomain protectionDomain)
Implements abstract javassist.
|
| private final MethodHandle |
| defineClass | back to summary |
|---|---|
| private final MethodHandle defineClass | |
| stack | back to summary |
|---|---|
| private final SecurityActions stack
Deprecated as a consequence of | |
| Java7 | back to summary |
|---|---|
| private Java7() | |
| defineClass | back to summary |
|---|---|
| pack-priv Class Implements abstract javassist.
| |
| getDefineClassMethodHandle | back to summary |
|---|---|
| private final MethodHandle getDefineClassMethodHandle() | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final Object | |
| private final DefineClassHelper. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Class | defineClass(String name, byte[] b, int off, int len, Class<?> neighbor, ClassLoader loader, ProtectionDomain protectionDomain)
Implements abstract javassist.
|
| private final DefineClassHelper. |
| getCallerClass | back to summary |
|---|---|
| private final Method getCallerClass | |
| stack | back to summary |
|---|---|
| private final Object stack | |
| sunMiscUnsafe | back to summary |
|---|---|
| private final DefineClassHelper. | |
| Java9 | back to summary |
|---|---|
| pack-priv Java9() | |
| defineClass | back to summary |
|---|---|
| pack-priv Class Implements abstract javassist.
| |
| getReferencedUnsafe | back to summary |
|---|---|
| private final DefineClassHelper. | |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodHandle | |
| private final SecurityActions. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Class | defineClass(String name, byte[] b, int off, int len, ClassLoader loader, ProtectionDomain protectionDomain)
|
| defineClass | back to summary |
|---|---|
| private final MethodHandle defineClass | |
| sunMiscUnsafeTheUnsafe | back to summary |
|---|---|
| private final SecurityActions. | |
| ReferencedUnsafe | back to summary |
|---|---|
| pack-priv ReferencedUnsafe(SecurityActions. | |
| defineClass | back to summary |
|---|---|
| pack-priv Class | |
| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final SecurityActions | stack
Deprecated
as a consequence of
SecurityActions being deprecated.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Class | defineClass(String name, byte[] b, int off, int len, Class<?> neighbor, ClassLoader loader, ProtectionDomain protectionDomain)
Implements abstract javassist.
|
| private final Method |
| defineClass | back to summary |
|---|---|
| private final Method defineClass | |
| stack | back to summary |
|---|---|
| private final SecurityActions stack
Deprecated as a consequence of | |
| JavaOther | back to summary |
|---|---|
| private JavaOther() | |
| defineClass | back to summary |
|---|---|
| pack-priv Class Implements abstract javassist.
| |
| getDefineClassMethod | back to summary |
|---|---|
| private final Method getDefineClassMethod() | |