public static enum Plugin.Engine.Target.Discarding extends Enum<Plugin.Engine.Target.Discarding> implements Plugin.Engine.Target, Plugin.Engine.Target.Sink
Plugin.Engine.Target.Discarding, Plugin.Engine.Target.ForFolder, Plugin.Engine.Target.ForJarFile, Plugin.Engine.Target.InMemory, Plugin.Engine.Target.Sink
Plugin.Engine.Target.Sink.ForJarOutputStream
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
static Plugin.Engine.Target.Discarding |
valueOf(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.Sink |
write(Manifest manifest)
Initializes this target prior to writing.
|
public static final Plugin.Engine.Target.Discarding INSTANCE
public static Plugin.Engine.Target.Discarding[] values()
for (Plugin.Engine.Target.Discarding c : Plugin.Engine.Target.Discarding.values()) System.out.println(c);
public static Plugin.Engine.Target.Discarding valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Plugin.Engine.Target.Sink write(Manifest manifest)
write
in interface Plugin.Engine.Target
manifest
- The manifest for the target or null
if no manifest was found.public void store(Map<TypeDescription,byte[]> binaryRepresentations)
store
in interface Plugin.Engine.Target.Sink
binaryRepresentations
- The binary representations to store.public void retain(Plugin.Engine.Source.Element element)
retain
in interface Plugin.Engine.Target.Sink
element
- The element to retain.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2020. All rights reserved.