Package htmlflow.flowifier
Class DefaultHtmlToJavaHtmlFlowNodeVisitor
java.lang.Object
htmlflow.flowifier.AbstractHtmlToJavaHtmlFlowNodeVisitor<StringBuilder>
htmlflow.flowifier.DefaultHtmlToJavaHtmlFlowNodeVisitor
- All Implemented Interfaces:
HtmlToJavaHtmlFlowNodeVisitor<StringBuilder>,org.jsoup.select.NodeVisitor
public class DefaultHtmlToJavaHtmlFlowNodeVisitor
extends AbstractHtmlToJavaHtmlFlowNodeVisitor<StringBuilder>
Default implementation of the visitor of a JSoup node that converts the HTML
source code into a Java class, it uses a StringBuilder to append the content
of the Java class. Note that this implementation is not intended to be
thread-safe
- Author:
- Julien Gouesse
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor with indentation disabledDefaultHtmlToJavaHtmlFlowNodeVisitor(boolean indented) Constructor -
Method Summary
Methods inherited from class htmlflow.flowifier.AbstractHtmlToJavaHtmlFlowNodeVisitor
appendAttribute, appendFooter, appendHeader, convertJavaStringContentToJavaDeclarableString, getAppendable, getClassFromNodeName, getMethodFromAttribute, head, isUncloseable, tail
-
Constructor Details
-
DefaultHtmlToJavaHtmlFlowNodeVisitor
public DefaultHtmlToJavaHtmlFlowNodeVisitor()Constructor with indentation disabled -
DefaultHtmlToJavaHtmlFlowNodeVisitor
public DefaultHtmlToJavaHtmlFlowNodeVisitor(boolean indented) Constructor- Parameters:
indented-trueif the generated HTML source code is indented, otherwisefalse
-