Package net.bytebuddy.agent
Enum Class ByteBuddyAgent.AttachmentTypeEvaluator.Disabled
java.lang.Object
java.lang.Enum<ByteBuddyAgent.AttachmentTypeEvaluator.Disabled>
net.bytebuddy.agent.ByteBuddyAgent.AttachmentTypeEvaluator.Disabled
- All Implemented Interfaces:
Serializable
,Comparable<ByteBuddyAgent.AttachmentTypeEvaluator.Disabled>
,Constable
,ByteBuddyAgent.AttachmentTypeEvaluator
- Enclosing interface:
ByteBuddyAgent.AttachmentTypeEvaluator
public static enum ByteBuddyAgent.AttachmentTypeEvaluator.Disabled
extends Enum<ByteBuddyAgent.AttachmentTypeEvaluator.Disabled>
implements ByteBuddyAgent.AttachmentTypeEvaluator
An attachment type evaluator that never requires external attachment.
-
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.AttachmentTypeEvaluator
ByteBuddyAgent.AttachmentTypeEvaluator.Disabled, ByteBuddyAgent.AttachmentTypeEvaluator.ForJava9CapableVm, ByteBuddyAgent.AttachmentTypeEvaluator.InstallationAction
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
requiresExternalAttachment
(String processId) Checks if the current VM requires external attachment for the supplied process id.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Disabled
private Disabled()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
requiresExternalAttachment
Checks if the current VM requires external attachment for the supplied process id.- Specified by:
requiresExternalAttachment
in interfaceByteBuddyAgent.AttachmentTypeEvaluator
- Parameters:
processId
- The process id of the process to which to attach.- Returns:
true
if the current VM requires external attachment for the supplied process.
-