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.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

      public static ClassFilePostProcessor.NoOp[] 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

      public static ClassFilePostProcessor.NoOp valueOf(String name)
      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 name
      NullPointerException - 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 interface ClassFilePostProcessor
      Parameters:
      classLoader - The class loader which is used to load a class or null if loaded by the bootstrap loader.
      name - The binary name of the transformed class.
      protectionDomain - The protection domain of the transformed class or null if no protection domain is provided.
      binaryRepresentation - The binary representation of the class file.
      Returns:
      The class file to use.