Package net.bytebuddy.agent
Enum ByteBuddyAgent.AttachmentTypeEvaluator.Disabled
- java.lang.Object
-
- java.lang.Enum<ByteBuddyAgent.AttachmentTypeEvaluator.Disabled>
-
- net.bytebuddy.agent.ByteBuddyAgent.AttachmentTypeEvaluator.Disabled
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ByteBuddyAgent.AttachmentTypeEvaluator.Disabled>
,ByteBuddyAgent.AttachmentTypeEvaluator
- Enclosing interface:
- ByteBuddyAgent.AttachmentTypeEvaluator
public static enum ByteBuddyAgent.AttachmentTypeEvaluator.Disabled extends java.lang.Enum<ByteBuddyAgent.AttachmentTypeEvaluator.Disabled> implements ByteBuddyAgent.AttachmentTypeEvaluator
An attachment type evaluator that never requires external attachment.
-
-
Nested Class Summary
-
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 Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Disabled()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
requiresExternalAttachment(java.lang.String processId)
Checks if the current VM requires external attachment for the supplied process id.static ByteBuddyAgent.AttachmentTypeEvaluator.Disabled
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ByteBuddyAgent.AttachmentTypeEvaluator.Disabled[]
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.AttachmentTypeEvaluator.Disabled INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ByteBuddyAgent.AttachmentTypeEvaluator.Disabled[] 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.AttachmentTypeEvaluator.Disabled c : ByteBuddyAgent.AttachmentTypeEvaluator.Disabled.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.AttachmentTypeEvaluator.Disabled 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
-
requiresExternalAttachment
public boolean requiresExternalAttachment(java.lang.String processId)
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.
-
-