public final class ClassDefiner
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Class<?> |
defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
byte[] classBytes) |
Define a class using the module and protection domain of an existing class.
|
java.lang.Class<?> |
defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
byte[] classBytes,
int off,
int len) |
Define a class using the module and protection domain of an existing class.
|
java.lang.Class<?> |
defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
java.nio.ByteBuffer classBytes) |
Define a class using the module and protection domain of an existing class.
|
java.lang.Class<?> |
defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
byte[] classBytes) |
Define a class using the module of an existing class.
|
java.lang.Class<?> |
defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
byte[] classBytes,
int off,
int len) |
Define a class using the module of an existing class.
|
java.lang.Class<?> |
defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
java.nio.ByteBuffer classBytes) |
Define a class using the module of an existing class.
|
java.lang.Class<?> |
defineClass(Module module,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
byte[] classBytes) |
Define a class.
|
java.lang.Class<?> |
defineClass(Module module,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
byte[] classBytes,
int off,
int len) |
Define a class.
|
java.lang.Class<?> |
defineClass(Module module,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
java.nio.ByteBuffer classBytes) |
Define a class.
|
static ClassDefiner |
getInstance() |
Get the class definer instance.
|
public java.lang.Class<?> defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
java.nio.ByteBuffer classBytes)
originalClass - the existing class (must not be null)className - the new class name (must not be null)classBytes - the new class bytes (must not be null)null)public java.lang.Class<?> defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
byte[] classBytes,
int off,
int len)
originalClass - the existing class (must not be null)className - the new class name (must not be null)classBytes - the new class bytes (must not be null)off - the offset into the classBytes arraylen - the number of bytes to use from the classBytes arraynull)public java.lang.Class<?> defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
byte[] classBytes)
originalClass - the existing class (must not be null)className - the new class name (must not be null)classBytes - the new class bytes (must not be null)null)public java.lang.Class<?> defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
java.nio.ByteBuffer classBytes)
originalClass - the existing class (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)null)public java.lang.Class<?> defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
byte[] classBytes,
int off,
int len)
originalClass - the existing class (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)off - the offset into the classBytes arraylen - the number of bytes to use from the classBytes arraynull)public java.lang.Class<?> defineClass(java.lang.Class<?> originalClass,
java.lang.String className,
java.security.ProtectionDomain protectionDomain,
byte[] classBytes)
originalClass - the existing class (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)null)public java.lang.Class<?> defineClass(Module module, java.lang.String className, java.security.ProtectionDomain protectionDomain, java.nio.ByteBuffer classBytes)
module - the module to define the class to (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)null)public java.lang.Class<?> defineClass(Module module, java.lang.String className, java.security.ProtectionDomain protectionDomain, byte[] classBytes, int off, int len)
module - the module to define the class to (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)off - the offset into the classBytes arraylen - the number of bytes to use from the classBytes arraynull)public java.lang.Class<?> defineClass(Module module, java.lang.String className, java.security.ProtectionDomain protectionDomain, byte[] classBytes)
module - the module to define the class to (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)null)public static ClassDefiner getInstance()
createClassLoader RuntimePermission.null)Copyright © 2022 JBoss by Red Hat. All rights reserved.