Package com.vladsch.flexmark.parser.core
Class ListBlockParser.Factory
java.lang.Object
com.vladsch.flexmark.parser.core.ListBlockParser.Factory
- All Implemented Interfaces:
CustomBlockParserFactory
,Dependent
,Function<DataHolder,
BlockParserFactory>
- Enclosing class:
ListBlockParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull BlockParserFactory
apply
(@NotNull DataHolder options) @Nullable SpecialLeadInHandler
getLeadInHandler
(@NotNull DataHolder options)
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
getAfterDependents
- Specified by:
getAfterDependents
in interfaceDependent
- Returns:
- null or a list of dependents that must be executed before calling this one if any of the blocks in the list affect global state then these will be run on ALL blocks of the document before this preprocessor is called.
-
getBeforeDependents
- Specified by:
getBeforeDependents
in interfaceDependent
- Returns:
- null or a list of dependents that must be executed after calling this one if any of the blocks in the list affect global state then these will be run on ALL blocks of the document before this preprocessor is called.
-
affectsGlobalScope
public boolean affectsGlobalScope()- Specified by:
affectsGlobalScope
in interfaceDependent
- Returns:
- true if this dependent affects the global scope, which means that any that depend on it have to be run after this dependent has run against all elements. Otherwise, the dependent can run on an element after its dependents have processed an element. parsed.
-
apply
- Specified by:
apply
in interfaceCustomBlockParserFactory
- Specified by:
apply
in interfaceFunction<DataHolder,
BlockParserFactory>
-
getLeadInHandler
@Nullable public @Nullable SpecialLeadInHandler getLeadInHandler(@NotNull @NotNull DataHolder options) - Specified by:
getLeadInHandler
in interfaceCustomBlockParserFactory
- Parameters:
options
- options for this parser session- Returns:
- special lead in character handler for the block parser elements
-