Class TaskListItemBlockPreProcessor.Factory
java.lang.Object
com.vladsch.flexmark.ext.gfm.tasklist.internal.TaskListItemBlockPreProcessor.Factory
- All Implemented Interfaces:
BlockPreProcessorFactory
,Dependent
,Function<ParserState,
BlockPreProcessor>
- Enclosing class:
TaskListItemBlockPreProcessor
public static class TaskListItemBlockPreProcessor.Factory
extends Object
implements BlockPreProcessorFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull BlockPreProcessor
apply
(@NotNull ParserState state) Create a paragraph pre processor for the documentBlock types that this pre-processors processes
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
getBlockTypes
Description copied from interface:BlockPreProcessorFactory
Block types that this pre-processors processes- Specified by:
getBlockTypes
in interfaceBlockPreProcessorFactory
- Returns:
- set of block node types
-
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
Description copied from interface:BlockPreProcessorFactory
Create a paragraph pre processor for the document- Specified by:
apply
in interfaceBlockPreProcessorFactory
- Specified by:
apply
in interfaceFunction<ParserState,
BlockPreProcessor> - Parameters:
state
- parser state, document blocks have already been parsed at this stage- Returns:
- block pre-processor
-