Class TaskListItem

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

    public class TaskListItem
    extends com.vladsch.flexmark.ast.ListItem
    A Task list item
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean canChangeMarker  
      protected boolean isOrderedItem  
      • Fields inherited from class com.vladsch.flexmark.ast.ListItem

        markerSuffix, 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
      TaskListItem()  
      TaskListItem​(com.vladsch.flexmark.ast.ListItem block)  
      TaskListItem​(com.vladsch.flexmark.util.ast.BlockContent blockContent)  
      TaskListItem​(com.vladsch.flexmark.util.sequence.BasedSequence chars)  
      TaskListItem​(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)  
      boolean isItemDoneMarker()  
      boolean isOrderedItem()  
      boolean isParagraphWrappingDisabled​(com.vladsch.flexmark.ast.Paragraph node, com.vladsch.flexmark.parser.ListOptions listOptions, com.vladsch.flexmark.util.data.DataHolder options)  
      void setCanChangeMarker​(boolean canChangeMarker)  
      void setOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)  
      void setOrderedItem​(boolean orderedItem)  
      • Methods inherited from class com.vladsch.flexmark.ast.ListItem

        getLastBlankLineChild, getMarkerSuffix, getOpeningMarker, getPriority, getSegments, isContainsBlankLine, isHadBlankAfterItemParagraph, isInTightList, isItemParagraph, isLoose, isOwnTight, isParagraphEndWrappingDisabled, isParagraphInTightListItem, isParagraphStartWrappingDisabled, isTight, setContainsBlankLine, setHadBlankAfterItemParagraph, setLoose, setMarkerSuffix, setPriority, setTight
      • 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

      • isOrderedItem

        protected boolean isOrderedItem
      • canChangeMarker

        protected boolean canChangeMarker
    • Constructor Detail

      • TaskListItem

        public TaskListItem()
      • TaskListItem

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

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

        public TaskListItem​(com.vladsch.flexmark.util.ast.BlockContent blockContent)
      • TaskListItem

        public TaskListItem​(com.vladsch.flexmark.ast.ListItem block)
    • Method Detail

      • getAstExtra

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

        public boolean isParagraphWrappingDisabled​(com.vladsch.flexmark.ast.Paragraph node,
                                                   com.vladsch.flexmark.parser.ListOptions listOptions,
                                                   com.vladsch.flexmark.util.data.DataHolder options)
        Specified by:
        isParagraphWrappingDisabled in interface com.vladsch.flexmark.ast.ParagraphItemContainer
        Overrides:
        isParagraphWrappingDisabled in class com.vladsch.flexmark.ast.ListItem
      • setOpeningMarker

        public void setOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)
        Overrides:
        setOpeningMarker in class com.vladsch.flexmark.ast.ListItem
      • isItemDoneMarker

        public boolean isItemDoneMarker()
      • isOrderedItem

        public boolean isOrderedItem()
        Overrides:
        isOrderedItem in class com.vladsch.flexmark.ast.ListItem
      • setOrderedItem

        public void setOrderedItem​(boolean orderedItem)
      • canChangeMarker

        public boolean canChangeMarker()
        Overrides:
        canChangeMarker in class com.vladsch.flexmark.ast.ListItem
      • setCanChangeMarker

        public void setCanChangeMarker​(boolean canChangeMarker)