Package net.bytebuddy.dynamic.loading
Enum NoOpClassFileTransformer
- java.lang.Object
-
- java.lang.Enum<NoOpClassFileTransformer>
-
- net.bytebuddy.dynamic.loading.NoOpClassFileTransformer
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NoOpClassFileTransformer>
,java.lang.instrument.ClassFileTransformer
public enum NoOpClassFileTransformer extends java.lang.Enum<NoOpClassFileTransformer> implements java.lang.instrument.ClassFileTransformer
A class file transformer that does not apply a transformation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
NO_TRANSFORMATION
Indicates that no transformation is to applied.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOpClassFileTransformer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
transform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
static NoOpClassFileTransformer
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NoOpClassFileTransformer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final NoOpClassFileTransformer INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static NoOpClassFileTransformer[] 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 (NoOpClassFileTransformer c : NoOpClassFileTransformer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoOpClassFileTransformer 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 byte[] transform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] classfileBuffer)
- Specified by:
transform
in interfacejava.lang.instrument.ClassFileTransformer
-
-