Top Description Methods
com.vladsch.flexmark.parser.block

public Interface CustomBlockParserFactory

extends Function<DataHolder, BlockParserFactory>, Dependent
Known Direct Implementers
com.vladsch.flexmark.parser.core.BlockQuoteParser.Factory, com.vladsch.flexmark.parser.core.FencedCodeBlockParser.Factory, com.vladsch.flexmark.parser.core.HeadingParser.Factory, com.vladsch.flexmark.parser.core.HtmlBlockParser.Factory, com.vladsch.flexmark.parser.core.IndentedCodeBlockParser.Factory, com.vladsch.flexmark.parser.core.ListBlockParser.Factory, com.vladsch.flexmark.parser.core.ThematicBreakParser.Factory
Imports
com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.dependency.Dependent, com.vladsch.flexmark.util.sequence.mappers.SpecialLeadInHandler, org.jetbrains.annotations.NotNull, .Nullable, java.util.function.Function

Custom block parser factory to create parser instance specific block parser factory

Method Summary

Modifier and TypeMethod and Description
public @NotNull BlockParserFactory
apply(@NotNull DataHolder
the function argument
options
)

Redeclares java.util.function.Function.apply.

Applies this function to the given argument.

public default @Nullable SpecialLeadInHandler

Returns:

special lead in character handler for the block parser elements
getLeadInHandler
(@NotNull DataHolder
options for this parser session
options
)

Inherited from com.vladsch.flexmark.util.dependency.Dependent:
affectsGlobalScopegetAfterDependentsgetBeforeDependents
Inherited from java.util.function.Function:
andThencomposeidentity

Method Detail

applyback to summary
public @NotNull BlockParserFactory apply(@NotNull DataHolder options)

Redeclares 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 BlockParserFactory

the function result

Annotations
@Override
@NotNull
getLeadInHandlerback to summary
public default @Nullable SpecialLeadInHandler getLeadInHandler(@NotNull DataHolder options)
Parameters
options:@NotNull DataHolder

options for this parser session

Returns:@Nullable SpecialLeadInHandler

special lead in character handler for the block parser elements

Annotations
@Nullable