Package net.bytebuddy.agent
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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.agent.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 net.bytebuddy.agent.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 aVirtualMachine
class.boolean
Determines if this accessor is applicable for the currently running JVM.boolean
Returnstrue
if 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:
isAvailable
in interfaceByteBuddyAgent.AttachmentProvider.Accessor
- Returns:
true
if this accessor is available.
-
isExternalAttachmentRequired
public boolean isExternalAttachmentRequired()Returnstrue
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.- Specified by:
isExternalAttachmentRequired
in interfaceByteBuddyAgent.AttachmentProvider.Accessor
- Returns:
true
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.
-
getVirtualMachineType
Returns aVirtualMachine
class. This method must only be called for available accessors.- Specified by:
getVirtualMachineType
in interfaceByteBuddyAgent.AttachmentProvider.Accessor
- Returns:
- The virtual machine type.
-
getExternalAttachment
Returns a description of a virtual machine class for an external attachment.- Specified by:
getExternalAttachment
in interfaceByteBuddyAgent.AttachmentProvider.Accessor
- Returns:
- A description of the external attachment.
-