Enum 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NoOp

        private NoOp()
    • 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 name
        java.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 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.