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 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 ClassFileVersionThe multi-release class file version number ornullif a regular class.private final DynamicTypeThe type that has been transformed. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForTransformedElement(ClassFileVersion classFileVersion, DynamicType dynamicType) Creates a new materializable for a successfully transformed type. -
Method Summary
Modifier and TypeMethodDescriptionvoidmaterialize(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 ornullif 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 ornullif 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 IOException Materializes this work result and adds any results to the corresponding collection.- Specified by:
materializein 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.
-