Class MacrosInlineParserExtension.Factory
- java.lang.Object
-
- com.vladsch.flexmark.ext.macros.internal.MacrosInlineParserExtension.Factory
-
- All Implemented Interfaces:
InlineParserExtensionFactory,Dependent,java.util.function.Function<LightInlineParser,InlineParserExtension>
- Enclosing class:
- MacrosInlineParserExtension
public static class MacrosInlineParserExtension.Factory extends java.lang.Object implements InlineParserExtensionFactory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaffectsGlobalScope()@NotNull InlineParserExtensionapply(@NotNull LightInlineParser lightInlineParser)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.lang.CharSequencegetCharacters()Starting Characters for this inline processor
-
-
-
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.
-
getCharacters
@NotNull public @NotNull java.lang.CharSequence getCharacters()
Description copied from interface:InlineParserExtensionFactoryStarting Characters for this inline processor- Specified by:
getCharactersin interfaceInlineParserExtensionFactory- Returns:
- set of characters for which this processor should be invoked
-
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.
-
apply
@NotNull public @NotNull InlineParserExtension apply(@NotNull @NotNull LightInlineParser lightInlineParser)
Description copied from interface:InlineParserExtensionFactoryCreate a paragraph pre processor for the document- Specified by:
applyin interfacejava.util.function.Function<LightInlineParser,InlineParserExtension>- Specified by:
applyin interfaceInlineParserExtensionFactory- Parameters:
lightInlineParser- inline parser instance- Returns:
- inline parser extension
-
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.
-
-