Class Heading

  • All Implemented Interfaces:
    AnchorRefTarget, com.vladsch.flexmark.util.ast.Content

    public class Heading
    extends com.vladsch.flexmark.util.ast.Block
    implements AnchorRefTarget
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String anchorRefId  
      protected com.vladsch.flexmark.util.sequence.BasedSequence closingMarker  
      protected boolean explicitAnchorRefId  
      protected int level  
      protected com.vladsch.flexmark.util.sequence.BasedSequence openingMarker  
      protected com.vladsch.flexmark.util.sequence.BasedSequence text  
      • Fields inherited from class com.vladsch.flexmark.util.ast.ContentNode

        lineSegments
      • Fields inherited from class com.vladsch.flexmark.util.ast.Node

        AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
    • Constructor Summary

      Constructors 
      Constructor Description
      Heading()  
      Heading​(com.vladsch.flexmark.util.ast.BlockContent blockContent)  
      Heading​(com.vladsch.flexmark.util.sequence.BasedSequence chars)  
      Heading​(com.vladsch.flexmark.util.sequence.BasedSequence chars, List<com.vladsch.flexmark.util.sequence.BasedSequence> segments)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getAnchorRefId()  
      String getAnchorRefText()  
      void getAstExtra​(@NotNull StringBuilder out)  
      com.vladsch.flexmark.util.sequence.BasedSequence getClosingMarker()  
      int getLevel()  
      com.vladsch.flexmark.util.sequence.BasedSequence getOpeningMarker()  
      @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()  
      com.vladsch.flexmark.util.sequence.BasedSequence getText()  
      boolean isAtxHeading()  
      boolean isExplicitAnchorRefId()  
      boolean isSetextHeading()  
      void setAnchorRefId​(String anchorRefId)  
      void setClosingMarker​(com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)  
      void setExplicitAnchorRefId​(boolean explicitAnchorRefId)  
      void setLevel​(int level)  
      void setOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)  
      void setText​(com.vladsch.flexmark.util.sequence.BasedSequence text)  
      • Methods inherited from class com.vladsch.flexmark.util.ast.Block

        getParent, setParent
      • Methods inherited from class com.vladsch.flexmark.util.ast.ContentNode

        getContentChars, getContentChars, getContentLines, getContentLines, getLineChars, getLineCount, getSpanningChars, setContent, setContent, setContent, setContentLine, setContentLines
      • 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, 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, spanningChars, startOfLine, takeChildren, toAstString, toSegmentSpan, toString, toStringAttributes, unlink
    • Field Detail

      • level

        protected int level
      • openingMarker

        protected com.vladsch.flexmark.util.sequence.BasedSequence openingMarker
      • text

        protected com.vladsch.flexmark.util.sequence.BasedSequence text
      • closingMarker

        protected com.vladsch.flexmark.util.sequence.BasedSequence closingMarker
      • anchorRefId

        protected String anchorRefId
      • explicitAnchorRefId

        protected boolean explicitAnchorRefId
    • Constructor Detail

      • Heading

        public Heading()
      • Heading

        public Heading​(com.vladsch.flexmark.util.sequence.BasedSequence chars)
      • Heading

        public Heading​(com.vladsch.flexmark.util.sequence.BasedSequence chars,
                       List<com.vladsch.flexmark.util.sequence.BasedSequence> segments)
      • Heading

        public Heading​(com.vladsch.flexmark.util.ast.BlockContent blockContent)
    • Method Detail

      • getAstExtra

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

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

        public boolean isAtxHeading()
      • isSetextHeading

        public boolean isSetextHeading()
      • getOpeningMarker

        public com.vladsch.flexmark.util.sequence.BasedSequence getOpeningMarker()
      • setOpeningMarker

        public void setOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)
      • getText

        public com.vladsch.flexmark.util.sequence.BasedSequence getText()
      • setText

        public void setText​(com.vladsch.flexmark.util.sequence.BasedSequence text)
      • getClosingMarker

        public com.vladsch.flexmark.util.sequence.BasedSequence getClosingMarker()
      • setClosingMarker

        public void setClosingMarker​(com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)
      • getLevel

        public int getLevel()
      • setLevel

        public void setLevel​(int level)