public static interface ClassInjector.UsingJna.Dispatcher.Jvm extends Library
Library.HandlerOPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER| Modifier and Type | Method and Description |
|---|---|
Class<?> |
JVM_DefineClass(JNIEnv env,
String name,
ClassLoader classLoader,
byte[] binaryRepresentation,
int length,
ProtectionDomain protectionDomain)
Defines a new class into a given class loader.
|
Class<?> JVM_DefineClass(JNIEnv env, String name, @MaybeNull ClassLoader classLoader, byte[] binaryRepresentation, int length, @MaybeNull ProtectionDomain protectionDomain) throws LastErrorException
env - The JNI environment.name - The internal name of the class.classLoader - The class loader to inject into or null if injecting into the bootstrap loader.binaryRepresentation - The class's binary representation.length - The length of the class's binary representation.protectionDomain - The protection domain or null if no explicit protection domain should be used.LastErrorException - If an error occurs during injection.Copyright © 2014–2023. All rights reserved.