Package net.bytebuddy.build
Enum Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Target
Plugin.Engine.Target.Discarding, Plugin.Engine.Target.ForFolder, Plugin.Engine.Target.ForJarFile, Plugin.Engine.Target.InMemory, Plugin.Engine.Target.Sink
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Target.Sink
Plugin.Engine.Target.Sink.ForJarOutputStream
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
retain
(Plugin.Engine.Source.Element element) Retains the supplied element in its original form.void
store
(Map<TypeDescription, byte[]> binaryRepresentations) Stores the supplied binary representation of types in this sink.Returns the enum constant of this class with the specified name.static Plugin.Engine.Target.Discarding[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Initializes this target prior to writing.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Discarding
private Discarding()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
write
Initializes this target prior to writing.- Specified by:
write
in interfacePlugin.Engine.Target
- Parameters:
manifest
- The manifest for the target ornull
if no manifest was found.- Returns:
- The sink to write to.
-
store
Stores the supplied binary representation of types in this sink.- Specified by:
store
in interfacePlugin.Engine.Target.Sink
- Parameters:
binaryRepresentations
- The binary representations to store.
-
retain
Retains the supplied element in its original form.- Specified by:
retain
in interfacePlugin.Engine.Target.Sink
- Parameters:
element
- The element to retain.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-