Package net.bytebuddy.agent.builder
Enum AgentBuilder.Transformer.NoOp
- java.lang.Object
-
- java.lang.Enum<AgentBuilder.Transformer.NoOp>
-
- net.bytebuddy.agent.builder.AgentBuilder.Transformer.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AgentBuilder.Transformer.NoOp>
,AgentBuilder.Transformer
- Enclosing interface:
- AgentBuilder.Transformer
public static enum AgentBuilder.Transformer.NoOp extends java.lang.Enum<AgentBuilder.Transformer.NoOp> implements AgentBuilder.Transformer
A no-op implementation of aAgentBuilder.Transformer
that does not modify the supplied dynamic type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Transformer
AgentBuilder.Transformer.Compound, AgentBuilder.Transformer.ForAdvice, AgentBuilder.Transformer.ForBuildPlugin, AgentBuilder.Transformer.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 DynamicType.Builder<?>
transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)
Allows for a transformation of aDynamicType.Builder
.static AgentBuilder.Transformer.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AgentBuilder.Transformer.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.Transformer.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static AgentBuilder.Transformer.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.Transformer.NoOp c : AgentBuilder.Transformer.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.Transformer.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
-
transform
public DynamicType.Builder<?> transform(DynamicType.Builder<?> builder, TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module)
Allows for a transformation of aDynamicType.Builder
.- Specified by:
transform
in interfaceAgentBuilder.Transformer
- Parameters:
builder
- The dynamic builder to transform.typeDescription
- The description of the type currently being instrumented.classLoader
- The class loader of the instrumented class. Might benull
to represent the bootstrap class loader.module
- The class's module ornull
if the current VM does not support modules.- Returns:
- A transformed version of the supplied
builder
.
-
-