Class AdmonitionBlock

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

    public class AdmonitionBlock
    extends com.vladsch.flexmark.util.ast.Block
    implements com.vladsch.flexmark.ast.ParagraphContainer
    An Admonition block node
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.vladsch.flexmark.util.sequence.BasedSequence title  
      protected com.vladsch.flexmark.util.sequence.BasedSequence titleClosingMarker  
      protected com.vladsch.flexmark.util.sequence.BasedSequence titleOpeningMarker  
      • 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
      AdmonitionBlock()  
      AdmonitionBlock​(com.vladsch.flexmark.util.sequence.BasedSequence chars)  
      AdmonitionBlock​(com.vladsch.flexmark.util.sequence.BasedSequence chars, com.vladsch.flexmark.util.sequence.BasedSequence openingMarker, com.vladsch.flexmark.util.sequence.BasedSequence info, List<com.vladsch.flexmark.util.sequence.BasedSequence> segments)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void getAstExtra​(@NotNull StringBuilder out)  
      com.vladsch.flexmark.util.sequence.BasedSequence getInfo()  
      com.vladsch.flexmark.util.sequence.BasedSequence getOpeningMarker()  
      @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()  
      @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegmentsForChars()  
      com.vladsch.flexmark.util.sequence.BasedSequence getTitle()  
      com.vladsch.flexmark.util.sequence.BasedSequence getTitleChars()  
      com.vladsch.flexmark.util.sequence.BasedSequence getTitleClosingMarker()  
      com.vladsch.flexmark.util.sequence.BasedSequence getTitleOpeningMarker()  
      boolean isParagraphEndWrappingDisabled​(com.vladsch.flexmark.ast.Paragraph node)  
      boolean isParagraphStartWrappingDisabled​(com.vladsch.flexmark.ast.Paragraph node)  
      void setInfo​(com.vladsch.flexmark.util.sequence.BasedSequence info)  
      void setOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)  
      void setTitle​(com.vladsch.flexmark.util.sequence.BasedSequence title)  
      void setTitleChars​(com.vladsch.flexmark.util.sequence.BasedSequence titleChars)  
      void setTitleClosingMarker​(com.vladsch.flexmark.util.sequence.BasedSequence titleClosingMarker)  
      void setTitleOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence titleOpeningMarker)  
      • 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, 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

      • titleOpeningMarker

        protected com.vladsch.flexmark.util.sequence.BasedSequence titleOpeningMarker
      • title

        protected com.vladsch.flexmark.util.sequence.BasedSequence title
      • titleClosingMarker

        protected com.vladsch.flexmark.util.sequence.BasedSequence titleClosingMarker
    • Constructor Detail

      • AdmonitionBlock

        public AdmonitionBlock()
      • AdmonitionBlock

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

        public AdmonitionBlock​(com.vladsch.flexmark.util.sequence.BasedSequence chars,
                               com.vladsch.flexmark.util.sequence.BasedSequence openingMarker,
                               com.vladsch.flexmark.util.sequence.BasedSequence info,
                               List<com.vladsch.flexmark.util.sequence.BasedSequence> segments)
    • Method Detail

      • getSegments

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

        @NotNull
        public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegmentsForChars()
        Overrides:
        getSegmentsForChars 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
      • getOpeningMarker

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

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

        public void setInfo​(com.vladsch.flexmark.util.sequence.BasedSequence info)
      • getInfo

        public com.vladsch.flexmark.util.sequence.BasedSequence getInfo()
      • getTitle

        public com.vladsch.flexmark.util.sequence.BasedSequence getTitle()
      • getTitleOpeningMarker

        public com.vladsch.flexmark.util.sequence.BasedSequence getTitleOpeningMarker()
      • setTitleOpeningMarker

        public void setTitleOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence titleOpeningMarker)
      • setTitle

        public void setTitle​(com.vladsch.flexmark.util.sequence.BasedSequence title)
      • getTitleClosingMarker

        public com.vladsch.flexmark.util.sequence.BasedSequence getTitleClosingMarker()
      • setTitleClosingMarker

        public void setTitleClosingMarker​(com.vladsch.flexmark.util.sequence.BasedSequence titleClosingMarker)
      • getTitleChars

        public com.vladsch.flexmark.util.sequence.BasedSequence getTitleChars()
      • setTitleChars

        public void setTitleChars​(com.vladsch.flexmark.util.sequence.BasedSequence titleChars)
      • isParagraphEndWrappingDisabled

        public boolean isParagraphEndWrappingDisabled​(com.vladsch.flexmark.ast.Paragraph node)
        Specified by:
        isParagraphEndWrappingDisabled in interface com.vladsch.flexmark.ast.ParagraphContainer
      • isParagraphStartWrappingDisabled

        public boolean isParagraphStartWrappingDisabled​(com.vladsch.flexmark.ast.Paragraph node)
        Specified by:
        isParagraphStartWrappingDisabled in interface com.vladsch.flexmark.ast.ParagraphContainer