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:
java.io.Serializable
,java.lang.Comparable<ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable>
,ByteBuddyAgent.AttachmentProvider.Accessor
- Enclosing interface:
- ByteBuddyAgent.AttachmentProvider.Accessor
public static enum ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable extends java.lang.Enum<ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable> implements ByteBuddyAgent.AttachmentProvider.Accessor
A canonical implementation of an unavailable accessor.
-
-
Nested Class Summary
-
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 Enum Constant Description INSTANCE
The singleton instance.
-
Field Summary
-
Fields inherited from interface net.bytebuddy.agent.ByteBuddyAgent.AttachmentProvider.Accessor
VIRTUAL_MACHINE_TYPE_NAME, VIRTUAL_MACHINE_TYPE_NAME_J9
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Unavailable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment
getExternalAttachment()
Returns a description of a virtual machine class for an external attachment.java.lang.Class<?>
getVirtualMachineType()
Returns aVirtualMachine
class.boolean
isAvailable()
Determines if this accessor is applicable for the currently running JVM.boolean
isExternalAttachmentRequired()
Returnstrue
if this accessor prohibits attachment to the same virtual machine in Java 9 and later.static ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable c : ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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
public java.lang.Class<?> 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
public ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment 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.
-
-