Package net.bytebuddy.build
Class Plugin.Engine.Dispatcher.Materializable.ForTransformedElement
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Dispatcher.Materializable.ForTransformedElement
- All Implemented Interfaces:
Plugin.Engine.Dispatcher.Materializable
- Enclosing interface:
Plugin.Engine.Dispatcher.Materializable
public static class Plugin.Engine.Dispatcher.Materializable.ForTransformedElement
extends Object
implements Plugin.Engine.Dispatcher.Materializable
A materializable for a successfully transformed type.
-
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 ClassFileVersion
The multi-release class file version number ornull
if a regular class.private final DynamicType
The type that has been transformed. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForTransformedElement
(ClassFileVersion classFileVersion, DynamicType dynamicType) Creates a new materializable for a successfully transformed type. -
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
-
classFileVersion
The multi-release class file version number ornull
if a regular class. -
dynamicType
The type that has been transformed.
-
-
Constructor Details
-
ForTransformedElement
protected ForTransformedElement(@MaybeNull ClassFileVersion classFileVersion, DynamicType dynamicType) Creates a new materializable for a successfully transformed type.- Parameters:
classFileVersion
- The multi-release class file version number ornull
if a regular class.dynamicType
- The type that has been transformed.
-
-
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.
-