Package icyllis.modernui.markflow
Interface SpanFactory<N extends org.commonmark.node.Node>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Span factory is invoked by
MarkflowVisitor
to create spans for a given node.
Use MarkflowConfig.Builder
to register span factories.-
Method Summary
Modifier and TypeMethodDescriptioncreateSpans
(MarkflowConfig config, N node, DataSet args) Create a span object or an array of span objects for the given node.
-
Method Details
-
createSpans
@Nullable Object createSpans(@NonNull MarkflowConfig config, @NonNull N node, @NonNull DataSet args) Create a span object or an array of span objects for the given node. This method can be called from ANY thread.- Parameters:
config
- context optionsnode
- AST nodeargs
- optional arguments- Returns:
- span, array of spans, or null
-