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.String
EOL
protected boolean
eolPending
protected int
indent
protected java.lang.StringBuilder
output
-
Constructor Summary
Constructors Constructor Description AstCollectingVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendEOL()
protected void
appendIndent()
protected void
appendPendingEOL()
void
clear()
void
collect(Node node)
java.lang.String
collectAndGetAstText(Node node)
java.lang.String
getAst()
protected void
visit(@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:
visit
in classNodeVisitorBase
-
-