Top Inners Fields Constructors Methods
com.vladsch.flexmark.ext.footnotes.internal

public Class FootnoteLinkRefProcessor

extends Object
implements LinkRefProcessor
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.parser.LinkRefProcessor
Imports
com.vladsch.flexmark.ext.footnotes.Footnote, .FootnoteBlock, .FootnoteExtension, com.vladsch.flexmark.parser.LinkRefProcessor, .LinkRefProcessorFactory, com.vladsch.flexmark.util.ast.Document, .Node, com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.sequence.BasedSequence, org.jetbrains.annotations.NotNull

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
pack-priv static final int
private final FootnoteRepository
pack-priv static final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @NotNull BasedSequence
public boolean
public @NotNull Node
public int
getBracketNestingLevel()

Implements com.vladsch.flexmark.parser.LinkRefProcessor.getBracketNestingLevel.

Whether the element consists of nested [] inside the link ref.

public boolean
getWantExclamationPrefix()

Implements com.vladsch.flexmark.parser.LinkRefProcessor.getWantExclamationPrefix.

Whether the image ref is desired, if not then !

public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BRACKET_NESTING_LEVELback to summary
pack-priv static final int BRACKET_NESTING_LEVEL
footnoteRepositoryback to summary
private final FootnoteRepository footnoteRepository
WANT_EXCLAMATION_PREFIXback to summary
pack-priv static final boolean WANT_EXCLAMATION_PREFIX

Constructor Detail

FootnoteLinkRefProcessorback to summary
public FootnoteLinkRefProcessor(Document document)

Method Detail

adjustInlineTextback to summary
public @NotNull BasedSequence adjustInlineText(@NotNull Document document, @NotNull Node node)
Annotations
@NotNull
@Override
allowDelimitersback to summary
public boolean allowDelimiters(@NotNull BasedSequence chars, @NotNull Document document, @NotNull Node node)
Annotations
@Override
createNodeback to summary
public @NotNull Node createNode(@NotNull BasedSequence nodeChars)
Annotations
@NotNull
@Override
getBracketNestingLevelback to summary
public int getBracketNestingLevel()

Implements com.vladsch.flexmark.parser.LinkRefProcessor.getBracketNestingLevel.

Doc from com.vladsch.flexmark.parser.LinkRefProcessor.getBracketNestingLevel.

Whether the element consists of nested [] inside the link ref. For example Wiki link [[]] processor would return 1 Only immediately nested [] are considered. [[ ]] is nesting 1, [ [ ]] is not considered

When >0 then preview of next characters is used and if they will match then inner reference will not be created to allow outer one to match the desired element

Returns:int

desired nesting level for references, >0 for nested, 0 for not nested

Annotations
@Override
getWantExclamationPrefixback to summary
public boolean getWantExclamationPrefix()

Implements com.vladsch.flexmark.parser.LinkRefProcessor.getWantExclamationPrefix.

Doc from com.vladsch.flexmark.parser.LinkRefProcessor.getWantExclamationPrefix.

Whether the image ref is desired, if not then ! will be stripped off the prefix and treated as plain text

Returns:boolean

true if ! is part of the desired element, false otherwise

Annotations
@Override
isMatchback to summary
public boolean isMatch(@NotNull BasedSequence nodeChars)
Annotations
@Override
updateNodeElementsback to summary
public void updateNodeElements(@NotNull Document document, @NotNull Node node)
Annotations
@Override
com.vladsch.flexmark.ext.footnotes.internal back to summary

public Class FootnoteLinkRefProcessor.Factory

extends Object
implements LinkRefProcessorFactory
Class Inheritance
  • java.lang.Object
  • com.vladsch.flexmark.ext.footnotes.internal.FootnoteLinkRefProcessor.Factory
All Implemented Interfaces
com.vladsch.flexmark.parser.LinkRefProcessorFactory, java.util.function.Function

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @NotNull LinkRefProcessor
apply(@NotNull Document
the function argument
document
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

public int
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Factoryback to summary
public Factory()

Method Detail

applyback to summary
public @NotNull LinkRefProcessor apply(@NotNull Document document)

Implements java.util.function.Function.apply.

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

Applies this function to the given argument.

Parameters
document:@NotNull Document

the function argument

Returns:@NotNull LinkRefProcessor

the function result

Annotations
@NotNull
@Override
getBracketNestingLevelback to summary
public int getBracketNestingLevel(@NotNull DataHolder options)
Annotations
@Override
getWantExclamationPrefixback to summary
public boolean getWantExclamationPrefix(@NotNull DataHolder options)
Annotations
@Override