Class ListItem

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.vladsch.flexmark.util.sequence.BasedSequence markerSuffix  
      protected com.vladsch.flexmark.util.sequence.BasedSequence openingMarker  
      • 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
      ListItem()  
      ListItem​(ListItem other)  
      ListItem​(com.vladsch.flexmark.util.ast.BlockContent blockContent)  
      ListItem​(com.vladsch.flexmark.util.sequence.BasedSequence chars)  
      ListItem​(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
      boolean canChangeMarker()  
      void getAstExtra​(@NotNull StringBuilder out)  
      com.vladsch.flexmark.util.ast.Node getLastBlankLineChild()  
      com.vladsch.flexmark.util.sequence.BasedSequence getMarkerSuffix()  
      com.vladsch.flexmark.util.sequence.BasedSequence getOpeningMarker()  
      int getPriority()  
      @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()  
      boolean isContainsBlankLine()  
      boolean isHadBlankAfterItemParagraph()  
      boolean isInTightList()  
      boolean isItemParagraph​(Paragraph node)  
      boolean isLoose()  
      boolean isOrderedItem()  
      boolean isOwnTight()  
      boolean isParagraphEndWrappingDisabled​(Paragraph node)  
      boolean isParagraphInTightListItem​(Paragraph node)  
      boolean isParagraphStartWrappingDisabled​(Paragraph node)  
      boolean isParagraphWrappingDisabled​(Paragraph node, ListOptions listOptions, com.vladsch.flexmark.util.data.DataHolder options)  
      boolean isTight()  
      void setContainsBlankLine​(boolean containsBlankLine)  
      void setHadBlankAfterItemParagraph​(boolean hadBlankAfterItemParagraph)  
      void setLoose​(boolean loose)  
      void setMarkerSuffix​(com.vladsch.flexmark.util.sequence.BasedSequence markerSuffix)  
      void setOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)  
      void setPriority​(int priority)  
      void setTight​(boolean tight)  
      • 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, 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

      • openingMarker

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

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

      • ListItem

        public ListItem()
      • ListItem

        public ListItem​(ListItem other)
      • ListItem

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

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

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

      • isOrderedItem

        public boolean isOrderedItem()
      • 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
      • canChangeMarker

        public boolean canChangeMarker()
      • getPriority

        public int getPriority()
      • setPriority

        public void setPriority​(int priority)
      • getOpeningMarker

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

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

        public com.vladsch.flexmark.util.sequence.BasedSequence getMarkerSuffix()
      • setMarkerSuffix

        public void setMarkerSuffix​(com.vladsch.flexmark.util.sequence.BasedSequence markerSuffix)
      • setTight

        public void setTight​(boolean tight)
      • setLoose

        public void setLoose​(boolean loose)
      • isTight

        public boolean isTight()
      • isOwnTight

        public boolean isOwnTight()
      • isLoose

        public boolean isLoose()
      • isInTightList

        public boolean isInTightList()
      • isHadBlankAfterItemParagraph

        public boolean isHadBlankAfterItemParagraph()
      • isContainsBlankLine

        public boolean isContainsBlankLine()
      • setContainsBlankLine

        public void setContainsBlankLine​(boolean containsBlankLine)
      • setHadBlankAfterItemParagraph

        public void setHadBlankAfterItemParagraph​(boolean hadBlankAfterItemParagraph)
      • getLastBlankLineChild

        public com.vladsch.flexmark.util.ast.Node getLastBlankLineChild()
        Overrides:
        getLastBlankLineChild in class com.vladsch.flexmark.util.ast.Node