Class FootnoteBlock
java.lang.Object
com.vladsch.flexmark.util.ast.Node
com.vladsch.flexmark.util.ast.ContentNode
com.vladsch.flexmark.util.ast.Block
com.vladsch.flexmark.ext.footnotes.FootnoteBlock
- All Implemented Interfaces:
ParagraphItemContainer, Content, ReferenceNode<FootnoteRepository, FootnoteBlock, Footnote>, Comparable<FootnoteBlock>
public class FootnoteBlock
extends Block
implements ReferenceNode<FootnoteRepository, FootnoteBlock, Footnote>, ParagraphItemContainer
A Footnote definition node containing text and other inline nodes nodes as children.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BasedSequenceprivate intprotected BasedSequenceprivate intprivate intprotected BasedSequenceprotected BasedSequenceFields inherited from class ContentNode
lineSegmentsFields inherited from class Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirstReferenceOffset(int firstReferenceOffset) intcompareTo(FootnoteBlock other) voidgetAstExtra(@NotNull StringBuilder out) intintint@Nullable FootnotegetReferencingNode(@NotNull Node node) @NotNull BasedSequence[]getText()booleanisItemParagraph(Paragraph node) booleanbooleanisParagraphWrappingDisabled(Paragraph node, ListOptions listOptions, DataHolder options) booleanvoidsetClosingMarker(BasedSequence closingMarker) voidsetFirstReferenceOffset(int firstReferenceOffset) voidsetFootnote(BasedSequence footnote) voidsetFootnoteOrdinal(int footnoteOrdinal) voidsetFootnoteReferences(int footnoteReferences) voidsetOpeningMarker(BasedSequence openingMarker) voidsetText(BasedSequence text) 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, 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 Details
-
openingMarker
-
text
-
closingMarker
-
footnote
-
footnoteOrdinal
private int footnoteOrdinal -
firstReferenceOffset
private int firstReferenceOffset -
footnoteReferences
private int footnoteReferences
-
-
Constructor Details
-
FootnoteBlock
public FootnoteBlock() -
FootnoteBlock
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<FootnoteBlock>
-
getFootnoteReferences
public int getFootnoteReferences() -
setFootnoteReferences
public void setFootnoteReferences(int footnoteReferences) -
getReferencingNode
- Specified by:
getReferencingNodein interfaceReferenceNode<FootnoteRepository, FootnoteBlock, Footnote>
-
getFirstReferenceOffset
public int getFirstReferenceOffset() -
setFirstReferenceOffset
public void setFirstReferenceOffset(int firstReferenceOffset) -
addFirstReferenceOffset
public void addFirstReferenceOffset(int firstReferenceOffset) -
isReferenced
public boolean isReferenced() -
getFootnoteOrdinal
public int getFootnoteOrdinal() -
setFootnoteOrdinal
public void setFootnoteOrdinal(int footnoteOrdinal) -
getAstExtra
- Overrides:
getAstExtrain classNode
-
getSegments
- Specified by:
getSegmentsin classNode
-
getOpeningMarker
-
setOpeningMarker
-
getText
-
setText
-
getClosingMarker
-
setClosingMarker
-
getFootnote
-
setFootnote
-
isItemParagraph
- Specified by:
isItemParagraphin interfaceParagraphItemContainer
-
isParagraphWrappingDisabled
public boolean isParagraphWrappingDisabled(Paragraph node, ListOptions listOptions, DataHolder options) - Specified by:
isParagraphWrappingDisabledin interfaceParagraphItemContainer
-
isParagraphInTightListItem
- Specified by:
isParagraphInTightListItemin interfaceParagraphItemContainer
-