Enum Plugin.Engine.Target.Discarding

    • Constructor Detail

      • Discarding

        private Discarding()
    • Method Detail

      • values

        public static Plugin.Engine.Target.Discarding[] 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 (Plugin.Engine.Target.Discarding c : Plugin.Engine.Target.Discarding.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Plugin.Engine.Target.Discarding 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
      • write

        public Plugin.Engine.Target.Sink write​(java.util.jar.Manifest manifest)
        Initializes this target prior to writing.
        Specified by:
        write in interface Plugin.Engine.Target
        Parameters:
        manifest - The manifest for the target or null if no manifest was found.
        Returns:
        The sink to write to.
      • store

        public void store​(java.util.Map<TypeDescription,​byte[]> binaryRepresentations)
        Stores the supplied binary representation of types in this sink.
        Specified by:
        store in interface Plugin.Engine.Target.Sink
        Parameters:
        binaryRepresentations - The binary representations to store.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable