public static enum ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable extends Enum<ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable> implements ByteBuddyAgent.AttachmentProvider.Accessor
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple, ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
VIRTUAL_MACHINE_TYPE_NAME, VIRTUAL_MACHINE_TYPE_NAME_J9
Modifier and Type | Method and Description |
---|---|
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment |
getExternalAttachment()
Returns a description of a virtual machine class for an external attachment.
|
Class<?> |
getVirtualMachineType()
Returns a
VirtualMachine class. |
boolean |
isAvailable()
Determines if this accessor is applicable for the currently running JVM.
|
boolean |
isExternalAttachmentRequired()
Returns
true if this accessor prohibits attachment to the same virtual machine in Java 9 and later. |
static ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable INSTANCE
public static ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable[] values()
for (ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable c : ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable.values()) System.out.println(c);
public static ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAvailable()
isAvailable
in interface ByteBuddyAgent.AttachmentProvider.Accessor
true
if this accessor is available.public boolean isExternalAttachmentRequired()
true
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.isExternalAttachmentRequired
in interface ByteBuddyAgent.AttachmentProvider.Accessor
true
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.public Class<?> getVirtualMachineType()
VirtualMachine
class. This method must only be called for available accessors.getVirtualMachineType
in interface ByteBuddyAgent.AttachmentProvider.Accessor
public ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment getExternalAttachment()
getExternalAttachment
in interface ByteBuddyAgent.AttachmentProvider.Accessor
Copyright © 2014–2019. All rights reserved.