Class DefinitionItemBlockParser.Factory
- java.lang.Object
-
- com.vladsch.flexmark.ext.definition.internal.DefinitionItemBlockParser.Factory
-
- All Implemented Interfaces:
CustomBlockParserFactory,Dependent,java.util.function.Function<DataHolder,BlockParserFactory>
- Enclosing class:
- DefinitionItemBlockParser
public static class DefinitionItemBlockParser.Factory extends java.lang.Object implements CustomBlockParserFactory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaffectsGlobalScope()@NotNull BlockParserFactoryapply(@NotNull DataHolder options)@Nullable java.util.Set<java.lang.Class<?>>getAfterDependents()@Nullable java.util.Set<java.lang.Class<?>>getBeforeDependents()@Nullable SpecialLeadInHandlergetLeadInHandler(@NotNull DataHolder options)
-
-
-
Method Detail
-
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.
-
getLeadInHandler
@Nullable public @Nullable SpecialLeadInHandler getLeadInHandler(@NotNull @NotNull DataHolder options)
- Specified by:
getLeadInHandlerin interfaceCustomBlockParserFactory- Parameters:
options- options for this parser session- Returns:
- special lead in character handler for the block parser elements
-
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 BlockParserFactory apply(@NotNull @NotNull DataHolder options)
- Specified by:
applyin interfaceCustomBlockParserFactory- Specified by:
applyin interfacejava.util.function.Function<DataHolder,BlockParserFactory>
-
-