MCPcopy Create free account
hub / github.com/xmlet/HtmlFlow / toFlow

Method toFlow

flowifier/src/main/java/htmlflow/flowifier/Flowifier.java:60–66  ·  view source on GitHub ↗

Returns the Java source code of a class that generates the HTML source code of the given node @param the type of appendable used to store the Java source code @param node the node whose content has to be converted @param htmlToJavaHtmlFlowNodeVisitor the visitor

(
        final Node node,
        final HtmlToJavaHtmlFlowNodeVisitor<T> htmlToJavaHtmlFlowNodeVisitor
    )

Source from the content-addressed store, hash-verified

58 * code of the given node
59 */
60 public <T extends Appendable> T toFlow(
61 final Node node,
62 final HtmlToJavaHtmlFlowNodeVisitor<T> htmlToJavaHtmlFlowNodeVisitor
63 ) {
64 node.traverse(htmlToJavaHtmlFlowNodeVisitor);
65 return htmlToJavaHtmlFlowNodeVisitor.getAppendable();
66 }
67
68 /**
69 * Returns the Java source code of a class that generates the HTML source

Callers 2

testFlowifierMethod · 0.95
fromHtmlMethod · 0.95

Calls 3

getMethod · 0.80
getAppendableMethod · 0.65
toStringMethod · 0.45

Tested by 1

testFlowifierMethod · 0.76