Top Description Fields Constructors Methods
com.vladsch.flexmark.html

pack-priv Class DelegatingNodeRendererFactoryWrapper

extends Object
implements Function<DataHolder, NodeRenderer>, Dependent, DelegatingNodeRendererFactory
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.html.renderer.DelegatingNodeRendererFactory, com.vladsch.flexmark.html.renderer.NodeRendererFactory, java.util.function.Function, com.vladsch.flexmark.util.dependency.Dependent
Imports
com.vladsch.flexmark.html.renderer.DelegatingNodeRendererFactory, .NodeRenderer, .NodeRendererFactory, com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.dependency.Dependent, org.jetbrains.annotations.NotNull, .Nullable, java.util.HashSet, .List, .Set, java.util.function.Function

Factory for instantiating new node renderers with dependencies

Field Summary

Modifier and TypeField and Description
private Set<Class<?>>
private final NodeRendererFactory
private List<DelegatingNodeRendererFactoryWrapper>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final boolean
public @NotNull NodeRenderer
apply(@NotNull DataHolder
the function argument
options
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

public final @Nullable Set<Class<?>>
public @Nullable Set<Class<?>>
public @Nullable Set<Class<?>>
getDelegates()

Implements com.vladsch.flexmark.html.renderer.DelegatingNodeRendererFactory.getDelegates.

List of renderer factories to which this factory's renderer may delegate rendering

public @NotNull NodeRendererFactory
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

myDelegatesback to summary
private Set<Class<?>> myDelegates
nodeRendererFactoryback to summary
private final NodeRendererFactory nodeRendererFactory
nodeRenderersback to summary
private List<DelegatingNodeRendererFactoryWrapper> nodeRenderers

Constructor Detail

DelegatingNodeRendererFactoryWrapperback to summary
public DelegatingNodeRendererFactoryWrapper(List<DelegatingNodeRendererFactoryWrapper> nodeRenderers, NodeRendererFactory nodeRendererFactory)

Method Detail

affectsGlobalScopeback to summary
public final boolean affectsGlobalScope()

Implements com.vladsch.flexmark.util.dependency.Dependent.affectsGlobalScope.

Returns:boolean

Doc from com.vladsch.flexmark.util.dependency.Dependent.affectsGlobalScope.

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.

Annotations
@Override
applyback to summary
public @NotNull NodeRenderer apply(@NotNull DataHolder options)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
options:@NotNull DataHolder

the function argument

Returns:@NotNull NodeRenderer

the function result

Annotations
@Override
@NotNull
getAfterDependentsback to summary
public final @Nullable Set<Class<?>> getAfterDependents()

Implements com.vladsch.flexmark.util.dependency.Dependent.getAfterDependents.

Returns:@Nullable Set<Class<?>>

Doc from com.vladsch.flexmark.util.dependency.Dependent.getAfterDependents.

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.

Annotations
@Override
@Nullable
getBeforeDependentsback to summary
public @Nullable Set<Class<?>> getBeforeDependents()

Implements com.vladsch.flexmark.util.dependency.Dependent.getBeforeDependents.

Returns:@Nullable Set<Class<?>>

Doc from com.vladsch.flexmark.util.dependency.Dependent.getBeforeDependents.

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.

Annotations
@Override
@Nullable
getDelegatesback to summary
public @Nullable Set<Class<?>> getDelegates()

Implements com.vladsch.flexmark.html.renderer.DelegatingNodeRendererFactory.getDelegates.

Doc from com.vladsch.flexmark.html.renderer.DelegatingNodeRendererFactory.getDelegates.

List of renderer factories to which this factory's renderer may delegate rendering

Returns:@Nullable Set<Class<?>>

list of renderer factories

Annotations
@Override
@Nullable
getFactoryback to summary
public @NotNull NodeRendererFactory getFactory()
Annotations
@NotNull