Enum ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
java.lang.Object
java.lang.Enum<ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable>
net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
- All Implemented Interfaces:
Serializable, Comparable<ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable>, java.lang.constant.Constable, ByteBuddyAgent.AttachmentProvider.Accessor
- Enclosing interface:
ByteBuddyAgent.AttachmentProvider.Accessor
public static enum ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
extends Enum<ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable>
implements ByteBuddyAgent.AttachmentProvider.Accessor
A canonical implementation of an unavailable accessor.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface ByteBuddyAgent.AttachmentProvider.Accessor
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple, ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface ByteBuddyAgent.AttachmentProvider.Accessor
VIRTUAL_MACHINE_TYPE_NAME, VIRTUAL_MACHINE_TYPE_NAME_J9 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a description of a virtual machine class for an external attachment.Class<?> Returns aVirtualMachineclass.booleanDetermines if this accessor is applicable for the currently running JVM.booleanReturnstrueif this accessor prohibits attachment to the same virtual machine in Java 9 and later.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Unavailable
private Unavailable()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isAvailable
public boolean isAvailable()Determines if this accessor is applicable for the currently running JVM.- Specified by:
isAvailablein interfaceByteBuddyAgent.AttachmentProvider.Accessor- Returns:
trueif this accessor is available.
-
isExternalAttachmentRequired
public boolean isExternalAttachmentRequired()Returnstrueif this accessor prohibits attachment to the same virtual machine in Java 9 and later.- Specified by:
isExternalAttachmentRequiredin interfaceByteBuddyAgent.AttachmentProvider.Accessor- Returns:
trueif this accessor prohibits attachment to the same virtual machine in Java 9 and later.
-
getVirtualMachineType
Returns aVirtualMachineclass. This method must only be called for available accessors.- Specified by:
getVirtualMachineTypein interfaceByteBuddyAgent.AttachmentProvider.Accessor- Returns:
- The virtual machine type.
-
getExternalAttachment
Returns a description of a virtual machine class for an external attachment.- Specified by:
getExternalAttachmentin interfaceByteBuddyAgent.AttachmentProvider.Accessor- Returns:
- A description of the external attachment.
-