Class Plugin.Engine.Dispatcher.Materializable.ForRetainedElement

    • 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 interface Plugin.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.