Class MergeLinkResolver.Factory
- java.lang.Object
-
- com.vladsch.flexmark.formatter.internal.MergeLinkResolver.Factory
-
- All Implemented Interfaces:
LinkResolverFactory
,Dependent
,java.util.function.Function<LinkResolverBasicContext,LinkResolver>
- Enclosing class:
- MergeLinkResolver
public static class MergeLinkResolver.Factory extends java.lang.Object implements LinkResolverFactory
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
affectsGlobalScope()
LinkResolver
apply(LinkResolverBasicContext context)
java.util.Set<java.lang.Class<?>>
getAfterDependents()
java.util.Set<java.lang.Class<?>>
getBeforeDependents()
-
-
-
Method Detail
-
getAfterDependents
@Nullable public java.util.Set<java.lang.Class<?>> getAfterDependents()
- Specified by:
getAfterDependents
in interfaceDependent
- Specified by:
getAfterDependents
in interfaceLinkResolverFactory
- 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 java.util.Set<java.lang.Class<?>> getBeforeDependents()
- Specified by:
getBeforeDependents
in interfaceDependent
- Specified by:
getBeforeDependents
in interfaceLinkResolverFactory
- 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
- Specified by:
affectsGlobalScope
in interfaceLinkResolverFactory
- 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 LinkResolver apply(@NotNull LinkResolverBasicContext context)
- Specified by:
apply
in interfacejava.util.function.Function<LinkResolverBasicContext,LinkResolver>
- Specified by:
apply
in interfaceLinkResolverFactory
-
-