
org.zwobble.mammoth.internal.styles.HtmlPathElements Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mammoth Show documentation
Show all versions of mammoth Show documentation
Convert Word documents to simple and clean HTML
The newest version!
package org.zwobble.mammoth.internal.styles;
import org.zwobble.mammoth.internal.html.HtmlNode;
import java.util.List;
import java.util.function.Supplier;
import static org.zwobble.mammoth.internal.util.Lists.reversed;
public class HtmlPathElements implements HtmlPath {
private final List elements;
public HtmlPathElements(List elements) {
this.elements = elements;
}
@Override
public Supplier> wrap(Supplier> generateNodes) {
for (HtmlPathElement element : reversed(elements)) {
generateNodes = element.wrap(generateNodes);
}
return generateNodes;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy