Uses of Annotation Type
net.bytebuddy.agent.utility.nullability.MaybeNull
Packages that use MaybeNull
Package
Description
The Byte Buddy agent allows the redefinition of classes at runtime.
-
Uses of MaybeNull in net.bytebuddy.agent
Fields in net.bytebuddy.agent with annotations of type MaybeNullModifier and TypeFieldDescriptioncom.sun.jna.Pointer
VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary.DoorArgument.dataPointer
A pointer to the operation argument.com.sun.jna.Pointer
VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary.DoorArgument.descriptorPointer
A pointer to the operation descriptor.private static Instrumentation
Installer.instrumentation
A field for carrying theInstrumentation
that was loaded by the Byte Buddy agent.com.sun.jna.platform.win32.WinDef.DWORD
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.SecurityAttributes.length
The descriptor's length.com.sun.jna.Pointer
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.SecurityAttributes.securityDescriptor
A pointer to the descriptor.Methods in net.bytebuddy.agent with annotations of type MaybeNullModifier and TypeMethodDescriptioncom.sun.jna.platform.win32.WinDef.LPVOID
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary.allocate_remote_argument
(com.sun.jna.platform.win32.WinNT.HANDLE process, String pipe, String argument0, String argument1, String argument2, String argument3) Allocates the remote argument to supply to the remote code upon execution.com.sun.jna.platform.win32.WinDef.LPVOID
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary.allocate_remote_code
(com.sun.jna.platform.win32.WinNT.HANDLE process) Allocates the code to invoke on the remote VM.com.sun.jna.platform.win32.WinNT.HANDLE
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.CreateMutex
(VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.SecurityAttributes attributes, boolean owner, String name) Create or opens a mutex.com.sun.jna.platform.win32.WinNT.HANDLE
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary.CreateRemoteThread
(com.sun.jna.platform.win32.WinNT.HANDLE process, com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes, int stackSize, com.sun.jna.Pointer code, com.sun.jna.Pointer argument, com.sun.jna.platform.win32.WinDef.DWORD creationFlags, com.sun.jna.Pointer threadId) An alternative implementation ofKernel32.CreateRemoteThread(WinNT.HANDLE, WinBase.SECURITY_ATTRIBUTES, int, WinBase.FOREIGN_THREAD_START_ROUTINE, Pointer, WinDef.DWORD, Pointer)
that uses a pointer as thecode
argument rather then a structure to avoid accessing foreign memory.com.sun.jna.platform.win32.WinNT.HANDLE
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.CreateSemaphoreW
(com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes, long count, long maximumCount, String name) Creates a new semaphore.private static Instrumentation
ByteBuddyAgent.doGetInstrumentation()
Performs the actual lookup of theInstrumentation
from an installed Byte Buddy agent and returns the instance, or returnsnull
if not present.private static Instrumentation
ByteBuddyAgent.doGetInstrumentation
(String name) Performs the actual lookup of theInstrumentation
from an installed Byte Buddy agent and returns the instance, or returnsnull
if not present.com.sun.jna.platform.win32.WinNT.HANDLE
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.OpenSemaphoreW
(int access, boolean inheritHandle, String name) Opens an existing semaphore.private static File
ByteBuddyAgent.AgentProvider.ForByteBuddyAgent.trySelfResolve
(Class<?> installer) Attempts to resolve theInstaller
class from this jar file if it can be located.private static File
ByteBuddyAgent.trySelfResolve()
Attempts to resolve the location of theAttacher
class for a self-attachment.Method parameters in net.bytebuddy.agent with annotations of type MaybeNullModifier and TypeMethodDescriptioncom.sun.jna.platform.win32.WinDef.LPVOID
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary.allocate_remote_argument
(com.sun.jna.platform.win32.WinNT.HANDLE process, String pipe, String argument0, String argument1, String argument2, String argument3) Allocates the remote argument to supply to the remote code upon execution.com.sun.jna.platform.win32.WinDef.LPVOID
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary.allocate_remote_argument
(com.sun.jna.platform.win32.WinNT.HANDLE process, String pipe, String argument0, String argument1, String argument2, String argument3) Allocates the remote argument to supply to the remote code upon execution.com.sun.jna.platform.win32.WinDef.LPVOID
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary.allocate_remote_argument
(com.sun.jna.platform.win32.WinNT.HANDLE process, String pipe, String argument0, String argument1, String argument2, String argument3) Allocates the remote argument to supply to the remote code upon execution.com.sun.jna.platform.win32.WinDef.LPVOID
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary.allocate_remote_argument
(com.sun.jna.platform.win32.WinNT.HANDLE process, String pipe, String argument0, String argument1, String argument2, String argument3) Allocates the remote argument to supply to the remote code upon execution.static void
Attaches the given agent Jar on the target process which must be a virtual machine process.static void
ByteBuddyAgent.attach
(File agentJar, String processId, String argument, ByteBuddyAgent.AttachmentProvider attachmentProvider) Attaches the given agent Jar on the target process which must be a virtual machine process.static void
ByteBuddyAgent.attach
(File agentJar, ByteBuddyAgent.ProcessProvider processProvider, String argument) Attaches the given agent Jar on the target process which must be a virtual machine process.static void
ByteBuddyAgent.attach
(File agentJar, ByteBuddyAgent.ProcessProvider processProvider, String argument, ByteBuddyAgent.AttachmentProvider attachmentProvider) Attaches the given agent Jar on the target process which must be a virtual machine process.static void
ByteBuddyAgent.attachNative
(File agentLibrary, String processId, String argument) Attaches the given agent library on the target process which must be a virtual machine process.static void
ByteBuddyAgent.attachNative
(File agentLibrary, String processId, String argument, ByteBuddyAgent.AttachmentProvider attachmentProvider) Attaches the given agent library on the target process which must be a virtual machine process.static void
ByteBuddyAgent.attachNative
(File agentLibrary, ByteBuddyAgent.ProcessProvider processProvider, String argument) Attaches the given agent library on the target process which must be a virtual machine process.static void
ByteBuddyAgent.attachNative
(File agentLibrary, ByteBuddyAgent.ProcessProvider processProvider, String argument, ByteBuddyAgent.AttachmentProvider attachmentProvider) Attaches the given agent library on the target process which must be a virtual machine process.com.sun.jna.platform.win32.WinNT.HANDLE
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary.CreateRemoteThread
(com.sun.jna.platform.win32.WinNT.HANDLE process, com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes, int stackSize, com.sun.jna.Pointer code, com.sun.jna.Pointer argument, com.sun.jna.platform.win32.WinDef.DWORD creationFlags, com.sun.jna.Pointer threadId) An alternative implementation ofKernel32.CreateRemoteThread(WinNT.HANDLE, WinBase.SECURITY_ATTRIBUTES, int, WinBase.FOREIGN_THREAD_START_ROUTINE, Pointer, WinDef.DWORD, Pointer)
that uses a pointer as thecode
argument rather then a structure to avoid accessing foreign memory.com.sun.jna.platform.win32.WinNT.HANDLE
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary.CreateRemoteThread
(com.sun.jna.platform.win32.WinNT.HANDLE process, com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes, int stackSize, com.sun.jna.Pointer code, com.sun.jna.Pointer argument, com.sun.jna.platform.win32.WinDef.DWORD creationFlags, com.sun.jna.Pointer threadId) An alternative implementation ofKernel32.CreateRemoteThread(WinNT.HANDLE, WinBase.SECURITY_ATTRIBUTES, int, WinBase.FOREIGN_THREAD_START_ROUTINE, Pointer, WinDef.DWORD, Pointer)
that uses a pointer as thecode
argument rather then a structure to avoid accessing foreign memory.com.sun.jna.platform.win32.WinNT.HANDLE
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary.CreateRemoteThread
(com.sun.jna.platform.win32.WinNT.HANDLE process, com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes, int stackSize, com.sun.jna.Pointer code, com.sun.jna.Pointer argument, com.sun.jna.platform.win32.WinDef.DWORD creationFlags, com.sun.jna.Pointer threadId) An alternative implementation ofKernel32.CreateRemoteThread(WinNT.HANDLE, WinBase.SECURITY_ATTRIBUTES, int, WinBase.FOREIGN_THREAD_START_ROUTINE, Pointer, WinDef.DWORD, Pointer)
that uses a pointer as thecode
argument rather then a structure to avoid accessing foreign memory.com.sun.jna.platform.win32.WinNT.HANDLE
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.CreateSemaphoreW
(com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes, long count, long maximumCount, String name) Creates a new semaphore.protected static void
Attacher.install
(Class<?> virtualMachineType, String processId, String agent, boolean isNative, String argument) Installs a Java agent on a target VM.private static void
ByteBuddyAgent.install
(ByteBuddyAgent.AttachmentProvider attachmentProvider, String processId, String argument, ByteBuddyAgent.AgentProvider agentProvider, boolean isNative) Installs a Java agent on a target VM.private static void
ByteBuddyAgent.installExternal
(ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment externalAttachment, String processId, File agent, boolean isNative, String argument) Installs a Java agent to the current VM via an external process.protected void
Loads an agent by the given command.void
Loads an agent into the represented virtual machine.void
Loads an agent into the represented virtual machine.void
Loads an agent into the represented virtual machine.void
VirtualMachine.ForHotSpot.loadAgentLibrary
(String library, String argument) Loads a native agent library into the represented virtual machine.void
VirtualMachine.ForOpenJ9.loadAgentLibrary
(String library, String argument) Loads a native agent library into the represented virtual machine.void
VirtualMachine.loadAgentLibrary
(String library, String argument) Loads a native agent library into the represented virtual machine.void
VirtualMachine.ForHotSpot.loadAgentPath
(String path, String argument) Loads a native agent into the represented virtual machine.void
VirtualMachine.ForOpenJ9.loadAgentPath
(String path, String argument) Loads a native agent into the represented virtual machine.void
VirtualMachine.loadAgentPath
(String path, String argument) Loads a native agent into the represented virtual machine.ByteBuddyAgent.AttachmentProvider.Accessor.Simple.of
(ClassLoader classLoader, File... classPath) Creates an accessor by reading the process id from the JMX runtime bean and by attempting to load thecom.sun.tools.attach.VirtualMachine
class from the provided class loader.boolean
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.ReleaseSemaphore
(com.sun.jna.platform.win32.WinNT.HANDLE handle, long count, Long previousCount) Releases the semaphore.