Package com.vladsch.flexmark.parser.core
Class ListBlockParser.ListItemLeadInHandler
- java.lang.Object
-
- com.vladsch.flexmark.util.sequence.mappers.SpecialLeadInCharsHandler
-
- com.vladsch.flexmark.parser.core.ListBlockParser.ListItemLeadInHandler
-
- All Implemented Interfaces:
SpecialLeadInHandler
- Enclosing class:
- ListBlockParser
static class ListBlockParser.ListItemLeadInHandler extends SpecialLeadInCharsHandler
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static CharPredicate
ORDERED_DELIM_DOT
(package private) static SpecialLeadInHandler
ORDERED_DELIM_DOT_HANDLER
(package private) static CharPredicate
ORDERED_DELIM_DOT_PARENS
(package private) static SpecialLeadInHandler
ORDERED_DELIM_DOT_PARENS_HANDLER
(package private) CharPredicate
orderedDelims
-
Constructor Summary
Constructors Constructor Description ListItemLeadInHandler(java.lang.CharSequence listItemDelims, boolean dotOnly)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static @NotNull SpecialLeadInHandler
create(@NotNull java.lang.CharSequence listItemDelims, boolean dotOnly)
boolean
escape(@NotNull BasedSequence sequence, @Nullable DataHolder options, @NotNull java.util.function.Consumer<java.lang.CharSequence> consumer)
Escape special lead-in characters which start a block element if first non-whitespace on the lineboolean
unEscape(@NotNull BasedSequence sequence, @Nullable DataHolder options, @NotNull java.util.function.Consumer<java.lang.CharSequence> consumer)
UnEscape special lead-in characters which start a block element if first non-whitespace on the line-
Methods inherited from class com.vladsch.flexmark.util.sequence.mappers.SpecialLeadInCharsHandler
create, create
-
-
-
-
Field Detail
-
ORDERED_DELIM_DOT
static final CharPredicate ORDERED_DELIM_DOT
-
ORDERED_DELIM_DOT_PARENS
static final CharPredicate ORDERED_DELIM_DOT_PARENS
-
ORDERED_DELIM_DOT_HANDLER
static final SpecialLeadInHandler ORDERED_DELIM_DOT_HANDLER
-
ORDERED_DELIM_DOT_PARENS_HANDLER
static final SpecialLeadInHandler ORDERED_DELIM_DOT_PARENS_HANDLER
-
orderedDelims
final CharPredicate orderedDelims
-
-
Method Detail
-
create
@NotNull static @NotNull SpecialLeadInHandler create(@NotNull @NotNull java.lang.CharSequence listItemDelims, boolean dotOnly)
-
escape
public boolean escape(@NotNull @NotNull BasedSequence sequence, @Nullable @Nullable DataHolder options, @NotNull @NotNull java.util.function.Consumer<java.lang.CharSequence> consumer)
Description copied from class:SpecialLeadInCharsHandler
Escape special lead-in characters which start a block element if first non-whitespace on the lineThe leadIn sequence is always followed by a space or EOL so if lead in does not require a space to start a block element then test if it starts with the special sequence, otherwise test if it equals the special sequence
- Specified by:
escape
in interfaceSpecialLeadInHandler
- Overrides:
escape
in classSpecialLeadInCharsHandler
- Parameters:
sequence
- char sequence appearing as first non-whitespace on a lineoptions
- optionsconsumer
- consumer of char sequences to be called for the leadIn if it is changed by this handler- Returns:
- true if sequence was a lead in for the handler
-
unEscape
public boolean unEscape(@NotNull @NotNull BasedSequence sequence, @Nullable @Nullable DataHolder options, @NotNull @NotNull java.util.function.Consumer<java.lang.CharSequence> consumer)
Description copied from class:SpecialLeadInCharsHandler
UnEscape special lead-in characters which start a block element if first non-whitespace on the lineThe leadIn sequence is always followed by a space or EOL so if lead in does not require a space to start a block element then test if it starts with the special sequence, otherwise test if it equals the special sequence
- Specified by:
unEscape
in interfaceSpecialLeadInHandler
- Overrides:
unEscape
in classSpecialLeadInCharsHandler
- Parameters:
sequence
- char sequence appearing as first non-whitespace on a lineoptions
- optionsconsumer
- consumer of char sequences to be called for the leadIn if it is changed by this handler- Returns:
- true if sequence was a lead in for the handler
-
-