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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final CharPredicate(package private) static final SpecialLeadInHandler(package private) static final CharPredicate(package private) static final SpecialLeadInHandler(package private) final CharPredicate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static @NotNull SpecialLeadInHandlercreate(@NotNull CharSequence listItemDelims, boolean dotOnly) booleanescape(@NotNull BasedSequence sequence, @Nullable DataHolder options, @NotNull Consumer<CharSequence> consumer) Escape special lead-in characters which start a block element if first non-whitespace on the linebooleanunEscape(@NotNull BasedSequence sequence, @Nullable DataHolder options, @NotNull Consumer<CharSequence> consumer) UnEscape special lead-in characters which start a block element if first non-whitespace on the lineMethods inherited from class SpecialLeadInCharsHandler
create, create
-
Field Details
-
ORDERED_DELIM_DOT
-
ORDERED_DELIM_DOT_PARENS
-
ORDERED_DELIM_DOT_HANDLER
-
ORDERED_DELIM_DOT_PARENS_HANDLER
-
orderedDelims
-
-
Constructor Details
-
ListItemLeadInHandler
-
-
Method Details
-
create
@NotNull static @NotNull SpecialLeadInHandler create(@NotNull @NotNull CharSequence listItemDelims, boolean dotOnly) -
escape
public boolean escape(@NotNull @NotNull BasedSequence sequence, @Nullable @Nullable DataHolder options, @NotNull @NotNull Consumer<CharSequence> consumer) Description copied from class:SpecialLeadInCharsHandlerEscape 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:
escapein interfaceSpecialLeadInHandler- Overrides:
escapein 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 Consumer<CharSequence> consumer) Description copied from class:SpecialLeadInCharsHandlerUnEscape 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:
unEscapein interfaceSpecialLeadInHandler- Overrides:
unEscapein 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
-