Enum Class Plugin.Engine.Target.Discarding

java.lang.Object
java.lang.Enum<Plugin.Engine.Target.Discarding>
net.bytebuddy.build.Plugin.Engine.Target.Discarding
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Comparable<Plugin.Engine.Target.Discarding>, Constable, Plugin.Engine.Target, Plugin.Engine.Target.Sink
Enclosing interface:
Plugin.Engine.Target

public static enum Plugin.Engine.Target.Discarding extends Enum<Plugin.Engine.Target.Discarding> implements Plugin.Engine.Target, Plugin.Engine.Target.Sink
A sink that discards any entry.
  • Enum Constant Details

  • Constructor Details

    • Discarding

      private Discarding()
  • Method Details

    • values

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

      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(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.
    • retain

      public void retain(Plugin.Engine.Source.Element element)
      Retains the supplied element in its original form.
      Specified by:
      retain in interface Plugin.Engine.Target.Sink
      Parameters:
      element - The element to retain.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable