Package net.bytebuddy.build
Enum Plugin.Engine.Target.Discarding
- java.lang.Object
-
- java.lang.Enum<Plugin.Engine.Target.Discarding>
-
- net.bytebuddy.build.Plugin.Engine.Target.Discarding
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Serializable,java.lang.AutoCloseable,java.lang.Comparable<Plugin.Engine.Target.Discarding>,Plugin.Engine.Target,Plugin.Engine.Target.Sink
- Enclosing interface:
- Plugin.Engine.Target
public static enum Plugin.Engine.Target.Discarding extends java.lang.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 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 Enum Constant Description INSTANCEThe singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description privateDiscarding()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidretain(Plugin.Engine.Source.Element element)Retains the supplied element in its original form.voidstore(java.util.Map<TypeDescription,byte[]> binaryRepresentations)Stores the supplied binary representation of types in this sink.static Plugin.Engine.Target.DiscardingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Plugin.Engine.Target.Discarding[]values()Returns an array containing the constants of this enum type, in the order they are declared.Plugin.Engine.Target.Sinkwrite(java.util.jar.Manifest manifest)Initializes this target prior to writing.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Plugin.Engine.Target.Discarding INSTANCE
The singleton instance.
-
-
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 namejava.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:
writein interfacePlugin.Engine.Target- Parameters:
manifest- The manifest for the target ornullif 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:
storein interfacePlugin.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:
retainin interfacePlugin.Engine.Target.Sink- Parameters:
element- The element to retain.
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-