Class DefinitionListItemBlockPreProcessor.Factory
- java.lang.Object
-
- com.vladsch.flexmark.ext.definition.internal.DefinitionListItemBlockPreProcessor.Factory
-
- All Implemented Interfaces:
BlockPreProcessorFactory,Dependent,java.util.function.Function<ParserState,BlockPreProcessor>
- Enclosing class:
- DefinitionListItemBlockPreProcessor
public static class DefinitionListItemBlockPreProcessor.Factory extends java.lang.Object implements BlockPreProcessorFactory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaffectsGlobalScope()@NotNull BlockPreProcessorapply(@NotNull ParserState state)Create a paragraph pre processor for the document@Nullable java.util.Set<java.lang.Class<?>>getAfterDependents()@Nullable java.util.Set<java.lang.Class<?>>getBeforeDependents()@NotNull java.util.Set<java.lang.Class<? extends Block>>getBlockTypes()Block types that this pre-processors processes
-
-
-
Method Detail
-
getBlockTypes
@NotNull public @NotNull java.util.Set<java.lang.Class<? extends Block>> getBlockTypes()
Description copied from interface:BlockPreProcessorFactoryBlock types that this pre-processors processes- Specified by:
getBlockTypesin interfaceBlockPreProcessorFactory- Returns:
- set of block node types
-
getAfterDependents
@Nullable public @Nullable java.util.Set<java.lang.Class<?>> getAfterDependents()
- Specified by:
getAfterDependentsin 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
@Nullable public @Nullable java.util.Set<java.lang.Class<?>> getBeforeDependents()
- Specified by:
getBeforeDependentsin 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:
affectsGlobalScopein 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
@NotNull public @NotNull BlockPreProcessor apply(@NotNull @NotNull ParserState state)
Description copied from interface:BlockPreProcessorFactoryCreate a paragraph pre processor for the document- Specified by:
applyin interfaceBlockPreProcessorFactory- Specified by:
applyin interfacejava.util.function.Function<ParserState,BlockPreProcessor>- Parameters:
state- parser state, document blocks have already been parsed at this stage- Returns:
- block pre-processor
-
-