Class Plugin.Engine.Dispatcher.Materializable.ForUnresolvedElement

    • Field Detail

      • typeName

        private final java.lang.String typeName
        The name of the type that was deducted for this element.
    • Constructor Detail

      • ForUnresolvedElement

        protected ForUnresolvedElement​(Plugin.Engine.Source.Element element,
                                       java.lang.String typeName)
        Creates a new materializable for an element that could not be resolved.
        Parameters:
        element - The element that could not be resolved.
        typeName - The name of the type that was deducted for this 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.