Package org.commonmark.internal
Class InlineParserContextImpl
java.lang.Object
org.commonmark.internal.InlineParserContextImpl
- All Implemented Interfaces:
InlineParserContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<DelimiterProcessor> private final LinkReferenceDefinitions
-
Constructor Summary
ConstructorsConstructorDescriptionInlineParserContextImpl
(List<DelimiterProcessor> delimiterProcessors, LinkReferenceDefinitions linkReferenceDefinitions) -
Method Summary
Modifier and TypeMethodDescriptiongetLinkReferenceDefinition
(String label) Look up aLinkReferenceDefinition
for a given label.
-
Field Details
-
delimiterProcessors
-
linkReferenceDefinitions
-
-
Constructor Details
-
InlineParserContextImpl
public InlineParserContextImpl(List<DelimiterProcessor> delimiterProcessors, LinkReferenceDefinitions linkReferenceDefinitions)
-
-
Method Details
-
getCustomDelimiterProcessors
- Specified by:
getCustomDelimiterProcessors
in interfaceInlineParserContext
- Returns:
- custom delimiter processors that have been configured with
Parser.Builder.customDelimiterProcessor(DelimiterProcessor)
-
getLinkReferenceDefinition
Description copied from interface:InlineParserContext
Look up aLinkReferenceDefinition
for a given label.Note that the label is not normalized yet; implementations are responsible for normalizing before lookup.
- Specified by:
getLinkReferenceDefinition
in interfaceInlineParserContext
- Parameters:
label
- the link label to look up- Returns:
- the definition if one exists,
null
otherwise
-