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:
java.io.Serializable
,java.lang.Comparable<AgentBuilder.PatchMode.Handler.NoOp>
,AgentBuilder.PatchMode.Handler
- Enclosing interface:
- AgentBuilder.PatchMode.Handler
public static enum AgentBuilder.PatchMode.Handler.NoOp extends java.lang.Enum<AgentBuilder.PatchMode.Handler.NoOp> implements AgentBuilder.PatchMode.Handler
A non-operational handler.
-
-
Nested Class Summary
-
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 Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAfterRegistration(java.lang.instrument.Instrumentation instrumentation)
Invoked right after registering a class file transformer.void
onBeforeRegistration(java.lang.instrument.Instrumentation instrumentation)
Invoked prior to registering a class file transformer.boolean
onRegistration(ResettableClassFileTransformer classFileTransformer)
Invoked upon registering a class file transformer.static AgentBuilder.PatchMode.Handler.NoOp
valueOf(java.lang.String name)
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 Detail
-
INSTANCE
public static final AgentBuilder.PatchMode.Handler.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static AgentBuilder.PatchMode.Handler.NoOp[] 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 (AgentBuilder.PatchMode.Handler.NoOp c : AgentBuilder.PatchMode.Handler.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgentBuilder.PatchMode.Handler.NoOp 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
-
onBeforeRegistration
public void onBeforeRegistration(java.lang.instrument.Instrumentation instrumentation)
Invoked prior to registering a class file transformer.- Specified by:
onBeforeRegistration
in interfaceAgentBuilder.PatchMode.Handler
- Parameters:
instrumentation
- The instrumentation to use.
-
onRegistration
public boolean onRegistration(ResettableClassFileTransformer classFileTransformer)
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
public void onAfterRegistration(java.lang.instrument.Instrumentation instrumentation)
Invoked right after registering a class file transformer.- Specified by:
onAfterRegistration
in interfaceAgentBuilder.PatchMode.Handler
- Parameters:
instrumentation
- The instrumentation to use.
-
-