Class Abbreviation

  • All Implemented Interfaces:
    com.vladsch.flexmark.util.ast.DoNotDecorate, com.vladsch.flexmark.util.ast.DoNotLinkDecorate, com.vladsch.flexmark.util.ast.ReferencingNode<com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository,​AbbreviationBlock>

    public class Abbreviation
    extends com.vladsch.flexmark.util.ast.Node
    implements com.vladsch.flexmark.util.ast.DoNotDecorate, com.vladsch.flexmark.util.ast.DoNotLinkDecorate, com.vladsch.flexmark.util.ast.ReferencingNode<com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository,​AbbreviationBlock>
    A node containing the abbreviated text that will be rendered as an abbr tag or a link with title attribute
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.vladsch.flexmark.util.sequence.BasedSequence abbreviation  
      • Fields inherited from class com.vladsch.flexmark.util.ast.Node

        AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
    • Constructor Summary

      Constructors 
      Constructor Description
      Abbreviation​(com.vladsch.flexmark.util.sequence.BasedSequence chars, com.vladsch.flexmark.util.sequence.BasedSequence abbreviation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vladsch.flexmark.util.sequence.BasedSequence getAbbreviation()  
      void getAstExtra​(@NotNull StringBuilder out)  
      @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getReference()  
      AbbreviationBlock getReferenceNode​(com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository repository)  
      AbbreviationBlock getReferenceNode​(com.vladsch.flexmark.util.ast.Document document)  
      @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()  
      boolean isDefined()  
      protected @NotNull String toStringAttributes()  
      • Methods inherited from class com.vladsch.flexmark.util.ast.Node

        appendChain, appendChild, astChars, astExtraChars, astString, baseSubSequence, baseSubSequence, countAncestorsOfType, countDirectAncestorsOfType, delimitedSegmentSpan, delimitedSegmentSpanChars, endOfLine, extractChainTo, extractToFirstInChain, getAncestorOfType, getBaseSequence, getBlankLineSibling, getChars, getCharsFromSegments, getChildChars, getChildIterator, getChildOfType, getChildren, getDescendants, getDocument, getEmptyPrefix, getEmptySuffix, getEndLineNumber, getEndOffset, getEndOfLine, getExactChildChars, getFirstChild, getFirstChildAny, getFirstChildAnyNot, getFirstInChain, getGrandParent, getLastBlankLineChild, getLastChild, getLastChildAny, getLastChildAnyNot, getLastInChain, getLeadSegment, getLineColumnAtEnd, getLineNumber, getNext, getNextAny, getNextAnyNot, getNodeName, getNodeOfTypeIndex, getNodeOfTypeIndex, getOldestAncestorOfTypeAfter, getParent, getPrevious, getPreviousAny, getPreviousAnyNot, getReversedChildIterator, getReversedChildren, getReversedDescendants, getSegmentsForChars, getSourceRange, getStartLineNumber, getStartOffset, getStartOfLine, getTextLength, getTrailSegment, hasChildren, hasOrMoreChildren, insertAfter, insertBefore, insertChainAfter, insertChainBefore, isOrDescendantOfType, lineColumnAtIndex, lineColumnAtStart, moveTrailingBlankLines, prependChild, removeChildren, segmentSpan, segmentSpan, segmentSpanChars, segmentSpanChars, segmentSpanChars, segmentSpanCharsToVisible, setChars, setCharsFromContent, setCharsFromContentOnly, setCharsFromSegments, setParent, spanningChars, startOfLine, takeChildren, toAstString, toSegmentSpan, toString, unlink
    • Field Detail

      • abbreviation

        protected final com.vladsch.flexmark.util.sequence.BasedSequence abbreviation
    • Constructor Detail

      • Abbreviation

        public Abbreviation​(com.vladsch.flexmark.util.sequence.BasedSequence chars,
                            com.vladsch.flexmark.util.sequence.BasedSequence abbreviation)
    • Method Detail

      • getAbbreviation

        public com.vladsch.flexmark.util.sequence.BasedSequence getAbbreviation()
      • getSegments

        @NotNull
        public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()
        Specified by:
        getSegments in class com.vladsch.flexmark.util.ast.Node
      • getAstExtra

        public void getAstExtra​(@NotNull
                                @NotNull StringBuilder out)
        Overrides:
        getAstExtra in class com.vladsch.flexmark.util.ast.Node
      • toStringAttributes

        @NotNull
        protected @NotNull String toStringAttributes()
        Overrides:
        toStringAttributes in class com.vladsch.flexmark.util.ast.Node
      • isDefined

        public boolean isDefined()
        Specified by:
        isDefined in interface com.vladsch.flexmark.util.ast.ReferencingNode<com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository,​AbbreviationBlock>
      • getReference

        @NotNull
        public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getReference()
        Specified by:
        getReference in interface com.vladsch.flexmark.util.ast.ReferencingNode<com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository,​AbbreviationBlock>
      • getReferenceNode

        public AbbreviationBlock getReferenceNode​(com.vladsch.flexmark.util.ast.Document document)
        Specified by:
        getReferenceNode in interface com.vladsch.flexmark.util.ast.ReferencingNode<com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository,​AbbreviationBlock>
      • getReferenceNode

        public AbbreviationBlock getReferenceNode​(com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository repository)
        Specified by:
        getReferenceNode in interface com.vladsch.flexmark.util.ast.ReferencingNode<com.vladsch.flexmark.ext.abbreviation.internal.AbbreviationRepository,​AbbreviationBlock>