Package net.bytebuddy.dynamic.loading
Enum Class ClassFilePostProcessor.NoOp
java.lang.Object
java.lang.Enum<ClassFilePostProcessor.NoOp>
net.bytebuddy.dynamic.loading.ClassFilePostProcessor.NoOp
- All Implemented Interfaces:
Serializable
,Comparable<ClassFilePostProcessor.NoOp>
,Constable
,ClassFilePostProcessor
- Enclosing interface:
- ClassFilePostProcessor
public static enum ClassFilePostProcessor.NoOp
extends Enum<ClassFilePostProcessor.NoOp>
implements ClassFilePostProcessor
A non-operation class file post processor.
-
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.dynamic.loading.ClassFilePostProcessor
ClassFilePostProcessor.ForClassFileTransformer, ClassFilePostProcessor.NoOp
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
transform
(ClassLoader classLoader, String name, ProtectionDomain protectionDomain, byte[] binaryRepresentation) Transforms a class file for a given class.static ClassFilePostProcessor.NoOp
Returns the enum constant of this class with the specified name.static ClassFilePostProcessor.NoOp[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
transform
public byte[] transform(@MaybeNull ClassLoader classLoader, String name, @MaybeNull ProtectionDomain protectionDomain, byte[] binaryRepresentation) Transforms a class file for a given class.- Specified by:
transform
in interfaceClassFilePostProcessor
- Parameters:
classLoader
- The class loader which is used to load a class ornull
if loaded by the bootstrap loader.name
- The binary name of the transformed class.protectionDomain
- The protection domain of the transformed class ornull
if no protection domain is provided.binaryRepresentation
- The binary representation of the class file.- Returns:
- The class file to use.
-