Package com.vladsch.flexmark.test.util
Class AstCollectingVisitor
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.NodeVisitorBase
-
- com.vladsch.flexmark.test.util.AstCollectingVisitor
-
public class AstCollectingVisitor extends NodeVisitorBase
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEOLprotected booleaneolPendingprotected intindentprotected java.lang.StringBuilderoutput
-
Constructor Summary
Constructors Constructor Description AstCollectingVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendEOL()protected voidappendIndent()protected voidappendPendingEOL()voidclear()voidcollect(Node node)java.lang.StringcollectAndGetAstText(Node node)java.lang.StringgetAst()protected voidvisit(@NotNull Node node)-
Methods inherited from class com.vladsch.flexmark.util.ast.NodeVisitorBase
visitChildren
-
-
-
-
Field Detail
-
EOL
public static final java.lang.String EOL
- See Also:
- Constant Field Values
-
output
protected java.lang.StringBuilder output
-
indent
protected int indent
-
eolPending
protected boolean eolPending
-
-
Method Detail
-
getAst
public java.lang.String getAst()
-
clear
public void clear()
-
appendIndent
protected void appendIndent()
-
appendEOL
protected void appendEOL()
-
appendPendingEOL
protected void appendPendingEOL()
-
collectAndGetAstText
public java.lang.String collectAndGetAstText(Node node)
-
collect
public void collect(Node node)
-
visit
protected void visit(@NotNull @NotNull Node node)- Specified by:
visitin classNodeVisitorBase
-
-