Class ListItem
java.lang.Object
com.vladsch.flexmark.util.ast.Node
com.vladsch.flexmark.util.ast.ContentNode
com.vladsch.flexmark.util.ast.Block
com.vladsch.flexmark.ast.ListItem
- All Implemented Interfaces:
ParagraphContainer, ParagraphItemContainer, BlankLineContainer, Content
- Direct Known Subclasses:
BulletListItem, DefinitionItem, DefinitionTerm, OrderedListItem, TaskListItem
public abstract class ListItem
extends Block
implements ParagraphItemContainer, BlankLineContainer, ParagraphContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprotected BasedSequenceprotected BasedSequenceprivate intprivate booleanFields inherited from class ContentNode
lineSegmentsFields inherited from class Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE -
Constructor Summary
ConstructorsConstructorDescriptionListItem()ListItem(BlockContent blockContent) ListItem(BasedSequence chars) ListItem(BasedSequence chars, List<BasedSequence> segments) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidgetAstExtra(@NotNull StringBuilder out) Overridden by ListBlock and any others whose children propagate their blank line to parentint@NotNull BasedSequence[]booleanbooleanbooleanbooleanisItemParagraph(Paragraph node) booleanisLoose()booleanbooleanbooleanbooleanbooleanbooleanisParagraphWrappingDisabled(Paragraph node, ListOptions listOptions, DataHolder options) booleanisTight()voidsetContainsBlankLine(boolean containsBlankLine) voidsetHadBlankAfterItemParagraph(boolean hadBlankAfterItemParagraph) voidsetLoose(boolean loose) voidsetMarkerSuffix(BasedSequence markerSuffix) voidsetOpeningMarker(BasedSequence openingMarker) voidsetPriority(int priority) voidsetTight(boolean tight) Methods inherited from class ContentNode
getContentChars, getContentChars, getContentLines, getContentLines, getLineChars, getLineCount, getSpanningChars, setContent, setContent, setContent, setContentLine, setContentLinesMethods inherited from class 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 Details
-
openingMarker
-
markerSuffix
-
tight
private boolean tight -
hadBlankAfterItemParagraph
private boolean hadBlankAfterItemParagraph -
containsBlankLine
private boolean containsBlankLine -
priority
private int priority
-
-
Constructor Details
-
ListItem
public ListItem() -
ListItem
-
ListItem
-
ListItem
-
ListItem
-
-
Method Details
-
isOrderedItem
public boolean isOrderedItem() -
getAstExtra
- Overrides:
getAstExtrain classNode
-
getSegments
- Specified by:
getSegmentsin classNode
-
canChangeMarker
public boolean canChangeMarker() -
getPriority
public int getPriority() -
setPriority
public void setPriority(int priority) -
getOpeningMarker
-
setOpeningMarker
-
getMarkerSuffix
-
setMarkerSuffix
-
setTight
public void setTight(boolean tight) -
setLoose
public void setLoose(boolean loose) -
isTight
public boolean isTight() -
isOwnTight
public boolean isOwnTight() -
isLoose
public boolean isLoose() -
isParagraphEndWrappingDisabled
- Specified by:
isParagraphEndWrappingDisabledin interfaceParagraphContainer
-
isParagraphStartWrappingDisabled
- Specified by:
isParagraphStartWrappingDisabledin interfaceParagraphContainer
-
isParagraphInTightListItem
- Specified by:
isParagraphInTightListItemin interfaceParagraphItemContainer
-
isItemParagraph
- Specified by:
isItemParagraphin interfaceParagraphItemContainer
-
isParagraphWrappingDisabled
public boolean isParagraphWrappingDisabled(Paragraph node, ListOptions listOptions, DataHolder options) - Specified by:
isParagraphWrappingDisabledin interfaceParagraphItemContainer
-
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
Description copied from class:NodeOverridden by ListBlock and any others whose children propagate their blank line to parent- Overrides:
getLastBlankLineChildin classNode- Returns:
- return a child block that can contain the parent's last blank line
-