Class AbbreviationNodeFormatter
java.lang.Object
com.vladsch.flexmark.formatter.NodeRepositoryFormatter<AbbreviationRepository,AbbreviationBlock,Abbreviation>
com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationNodeFormatter
- All Implemented Interfaces:
NodeFormatter
,PhasedNodeFormatter
public class AbbreviationNodeFormatter
extends NodeRepositoryFormatter<AbbreviationRepository,AbbreviationBlock,Abbreviation>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final AbbreviationFormatOptions
private final boolean
Fields inherited from class com.vladsch.flexmark.formatter.NodeRepositoryFormatter
FORMATTING_PHASES, lastReference, myComparator, recheckUndefinedReferences, referenceList, referenceRepository, referenceUniqificationMap, repositoryNodesDone, unusedReferences
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.@Nullable Set
<NodeFormattingHandler<?>> getRepository
(DataHolder options) protected boolean
Whether references should be made uniquemodifyTransformedReference
(String transformedText, NodeFormatterContext context) private void
render
(AbbreviationBlock node, NodeFormatterContext context, MarkdownWriter markdown) private void
render
(Abbreviation node, NodeFormatterContext context, MarkdownWriter markdown) void
renderReferenceBlock
(AbbreviationBlock node, NodeFormatterContext context, MarkdownWriter markdown) Methods inherited from class com.vladsch.flexmark.formatter.NodeRepositoryFormatter
getFormattingPhases, getReferenceComparator, getTranslationReferencePlacement, renderDocument, renderReference, transformReferenceId, uniquifyIds
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vladsch.flexmark.formatter.NodeFormatter
getBlockQuoteLikePrefixChar
-
Field Details
-
ABBREVIATION_TRANSLATION_MAP
-
ABBREVIATION_UNIQUIFICATION_MAP
-
options
-
transformUnderscores
private final boolean transformUnderscores -
makeMergedAbbreviationsUnique
private final boolean makeMergedAbbreviationsUnique
-
-
Constructor Details
-
AbbreviationNodeFormatter
-
-
Method Details
-
makeReferencesUnique
protected boolean makeReferencesUnique()Description copied from class:NodeRepositoryFormatter
Whether references should be made unique- Overrides:
makeReferencesUnique
in classNodeRepositoryFormatter<AbbreviationRepository,
AbbreviationBlock, Abbreviation> - Returns:
- true if yes, false if leave all references as is
-
getRepository
- Specified by:
getRepository
in classNodeRepositoryFormatter<AbbreviationRepository,
AbbreviationBlock, Abbreviation>
-
getReferencePlacement
- Specified by:
getReferencePlacement
in classNodeRepositoryFormatter<AbbreviationRepository,
AbbreviationBlock, Abbreviation>
-
getReferenceSort
- Specified by:
getReferenceSort
in classNodeRepositoryFormatter<AbbreviationRepository,
AbbreviationBlock, Abbreviation>
-
modifyTransformedReference
- Overrides:
modifyTransformedReference
in classNodeRepositoryFormatter<AbbreviationRepository,
AbbreviationBlock, Abbreviation>
-
renderReferenceBlock
public void renderReferenceBlock(AbbreviationBlock node, NodeFormatterContext context, MarkdownWriter markdown) - Specified by:
renderReferenceBlock
in classNodeRepositoryFormatter<AbbreviationRepository,
AbbreviationBlock, Abbreviation>
-
getNodeFormattingHandlers
- Returns:
- the mapping of nodes this renderer handles to rendering function
-
getNodeClasses
Description copied from interface:NodeFormatter
Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.- Returns:
- the nodes of interest to this formatter during formatting.
-
render
-
render
-