Package net.bytebuddy.build
Class Plugin.Engine.Dispatcher.Materializable.ForFailedElement
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Dispatcher.Materializable.ForFailedElement
- All Implemented Interfaces:
Plugin.Engine.Dispatcher.Materializable
- Enclosing interface:
Plugin.Engine.Dispatcher.Materializable
public static class Plugin.Engine.Dispatcher.Materializable.ForFailedElement
extends Object
implements Plugin.Engine.Dispatcher.Materializable
A materializable for an element that failed to be transformed.
-
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
FieldsModifier and TypeFieldDescriptionprivate final Plugin.Engine.Source.Element
The element for which the transformation failed.A non-empty list of errors that occurred when attempting the transformation.private final TypeDescription
The type description for the represented type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForFailedElement
(Plugin.Engine.Source.Element element, TypeDescription typeDescription, List<Throwable> errored) Creates a new materializable for an element that failed to be transformed. -
Method Summary
Modifier and TypeMethodDescriptionvoid
materialize
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Materializes this work result and adds any results to the corresponding collection.
-
Field Details
-
element
The element for which the transformation failed. -
typeDescription
The type description for the represented type. -
errored
A non-empty list of errors that occurred when attempting the transformation.
-
-
Constructor Details
-
ForFailedElement
protected ForFailedElement(Plugin.Engine.Source.Element element, TypeDescription typeDescription, List<Throwable> errored) Creates a new materializable for an element that failed to be transformed.- Parameters:
element
- The element for which the transformation failed.typeDescription
- The type description for the represented type.errored
- A non-empty list of errors that occurred when attempting the transformation.
-
-
Method Details
-
materialize
public void materialize(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) throws IOExceptionMaterializes 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:
IOException
- If an I/O exception occurs.
-