Package net.bytebuddy.build
Class Plugin.Engine.Dispatcher.Materializable.ForRetainedElement
- java.lang.Object
-
- net.bytebuddy.build.Plugin.Engine.Dispatcher.Materializable.ForRetainedElement
-
- All Implemented Interfaces:
Plugin.Engine.Dispatcher.Materializable
- Enclosing interface:
- Plugin.Engine.Dispatcher.Materializable
public static class Plugin.Engine.Dispatcher.Materializable.ForRetainedElement extends java.lang.Object implements Plugin.Engine.Dispatcher.Materializable
A materializable for an element that is retained in its original state.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Dispatcher.Materializable
Plugin.Engine.Dispatcher.Materializable.ForFailedElement, Plugin.Engine.Dispatcher.Materializable.ForRetainedElement, Plugin.Engine.Dispatcher.Materializable.ForTransformedElement, Plugin.Engine.Dispatcher.Materializable.ForUnresolvedElement
-
-
Field Summary
Fields Modifier and Type Field Description private Plugin.Engine.Source.Element
element
The retained element.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForRetainedElement(Plugin.Engine.Source.Element element)
Creates a new materializable for a retained element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
materialize(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Materializes this work result and adds any results to the corresponding collection.
-
-
-
Field Detail
-
element
private final Plugin.Engine.Source.Element element
The retained element.
-
-
Constructor Detail
-
ForRetainedElement
protected ForRetainedElement(Plugin.Engine.Source.Element element)
Creates a new materializable for a retained element.- Parameters:
element
- The retained element.
-
-
Method Detail
-
materialize
public void materialize(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved) throws java.io.IOException
Materializes this work result and adds any results to the corresponding collection.- Specified by:
materialize
in interfacePlugin.Engine.Dispatcher.Materializable
- Parameters:
sink
- The sink to write any work to.transformed
- A list of all types that are transformed.failed
- A mapping of all types that failed during transformation to the exceptions that explain the failure.unresolved
- A list of type names that could not be resolved.- Throws:
java.io.IOException
- If an I/O exception occurs.
-
-