Package net.bytebuddy.agent.builder
Enum AgentBuilder.PatchMode.Handler.NoOp
java.lang.Object
java.lang.Enum<AgentBuilder.PatchMode.Handler.NoOp>
net.bytebuddy.agent.builder.AgentBuilder.PatchMode.Handler.NoOp
- All Implemented Interfaces:
Serializable
,Comparable<AgentBuilder.PatchMode.Handler.NoOp>
,java.lang.constant.Constable
,AgentBuilder.PatchMode.Handler
- Enclosing interface:
AgentBuilder.PatchMode.Handler
public static enum AgentBuilder.PatchMode.Handler.NoOp
extends Enum<AgentBuilder.PatchMode.Handler.NoOp>
implements AgentBuilder.PatchMode.Handler
A non-operational handler.
-
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.builder.AgentBuilder.PatchMode.Handler
AgentBuilder.PatchMode.Handler.ForPatchWithGap, AgentBuilder.PatchMode.Handler.ForPatchWithOverlap, AgentBuilder.PatchMode.Handler.ForPatchWithSubstitution, AgentBuilder.PatchMode.Handler.NoOp
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
onAfterRegistration
(Instrumentation instrumentation) Invoked right after registering a class file transformer.void
onBeforeRegistration
(Instrumentation instrumentation) Invoked prior to registering a class file transformer.boolean
onRegistration
(ResettableClassFileTransformer classFileTransformer) Invoked upon registering a class file transformer.Returns the enum constant of this type with the specified name.static AgentBuilder.PatchMode.Handler.NoOp[]
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
-
NoOp
private NoOp()
-
-
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
-
onBeforeRegistration
Invoked prior to registering a class file transformer.- Specified by:
onBeforeRegistration
in interfaceAgentBuilder.PatchMode.Handler
- Parameters:
instrumentation
- The instrumentation to use.
-
onRegistration
Invoked upon registering a class file transformer.- Specified by:
onRegistration
in interfaceAgentBuilder.PatchMode.Handler
- Parameters:
classFileTransformer
- The class file transformer to register.- Returns:
true
if a regular registration should be applied to the transformer.
-
onAfterRegistration
Invoked right after registering a class file transformer.- Specified by:
onAfterRegistration
in interfaceAgentBuilder.PatchMode.Handler
- Parameters:
instrumentation
- The instrumentation to use.
-