Package icyllis.modernui.markflow
Class MarkflowVisitor.Builder
java.lang.Object
icyllis.modernui.markflow.MarkflowVisitor.Builder
- Enclosing class:
MarkflowVisitor
-
Method Summary
Modifier and TypeMethodDescriptionblockHandler
(BlockHandler blockHandler) build
(MarkflowConfig config) You can build an instance yourself for testing.<N extends org.commonmark.node.Node>
MarkflowVisitor.Builderon
(Class<? extends N> clazz, NodeVisitor<? super N> visitor) Override any existing visitor for the given type.
-
Method Details
-
on
@NonNull public <N extends org.commonmark.node.Node> MarkflowVisitor.Builder on(@NonNull Class<? extends N> clazz, @Nullable NodeVisitor<? super N> visitor) Override any existing visitor for the given type.- Parameters:
clazz
- node type (exact class)visitor
-NodeVisitor
to be used, null to remove existing- Returns:
- this
-
blockHandler
- Parameters:
blockHandler
- to handle block start/end- Returns:
- this
-
build
You can build an instance yourself for testing. This builder can be reused and the state will be preserved.
-