Package net.bytebuddy.dynamic.loading
Enum ClassFilePostProcessor.NoOp
- java.lang.Object
-
- java.lang.Enum<ClassFilePostProcessor.NoOp>
-
- net.bytebuddy.dynamic.loading.ClassFilePostProcessor.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClassFilePostProcessor.NoOp>
,ClassFilePostProcessor
- Enclosing interface:
- ClassFilePostProcessor
public static enum ClassFilePostProcessor.NoOp extends java.lang.Enum<ClassFilePostProcessor.NoOp> implements ClassFilePostProcessor
A non-operation class file post processor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.loading.ClassFilePostProcessor
ClassFilePostProcessor.ForClassFileTransformer, ClassFilePostProcessor.NoOp
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singelton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
transform(java.lang.ClassLoader classLoader, java.lang.String name, java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation)
Transforms a class file for a given class.static ClassFilePostProcessor.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClassFilePostProcessor.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 ClassFilePostProcessor.NoOp INSTANCE
The singelton instance.
-
-
Method Detail
-
values
public static ClassFilePostProcessor.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 (ClassFilePostProcessor.NoOp c : ClassFilePostProcessor.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 ClassFilePostProcessor.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 byte[] transform(java.lang.ClassLoader classLoader, java.lang.String name, java.security.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.
-
-