Package icyllis.modernui.markdown
Class MarkdownVisitor
java.lang.Object
icyllis.modernui.markdown.MarkdownVisitor
- All Implemented Interfaces:
com.vladsch.flexmark.util.ast.NodeVisitHandler
,com.vladsch.flexmark.util.ast.Visitor<com.vladsch.flexmark.util.ast.Node>
,com.vladsch.flexmark.util.visitor.AstAction<com.vladsch.flexmark.util.ast.Node>
public final class MarkdownVisitor
extends Object
implements com.vladsch.flexmark.util.ast.NodeVisitHandler
Configurable node visitor handler which does not know anything about node subclasses
while allowing easy configuration of custom visitor for nodes of interest to visit.
-
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence text) void
blockEnd
(com.vladsch.flexmark.util.ast.Node node) void
blockStart
(com.vladsch.flexmark.util.ast.Node node) builder()
void
void
boolean
hasNext
(com.vladsch.flexmark.util.ast.Node node) Executes a check if there is further content available.int
length()
void
postSetSpans
(Object spans, int offset) <N extends com.vladsch.flexmark.util.ast.Node>
ObjectpreSetSpans
(N node, int offset) void
visit
(com.vladsch.flexmark.util.ast.Node node) void
visitChildren
(com.vladsch.flexmark.util.ast.Node parent) void
visitNodeOnly
(com.vladsch.flexmark.util.ast.Node node)
-
Method Details
-
visit
- Specified by:
visit
in interfacecom.vladsch.flexmark.util.ast.Visitor<com.vladsch.flexmark.util.ast.Node>
-
visitNodeOnly
- Specified by:
visitNodeOnly
in interfacecom.vladsch.flexmark.util.ast.NodeVisitHandler
-
visitChildren
- Specified by:
visitChildren
in interfacecom.vladsch.flexmark.util.ast.NodeVisitHandler
-
builder
-
getRenderArguments
-
append
-
append
-
length
public int length() -
hasNext
Executes a check if there is further content available.- Parameters:
node
- to check- Returns:
- boolean indicating if there are more nodes after supplied one
-
ensureNewLine
public void ensureNewLine() -
forceNewLine
public void forceNewLine() -
blockStart
-
blockEnd
-
preSetSpans
-
postSetSpans
-