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 BasedSequence
private int
protected BasedSequence
private int
private int
protected BasedSequence
protected BasedSequence
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFirstReferenceOffset
(int firstReferenceOffset) int
compareTo
(FootnoteBlock other) void
getAstExtra
(@NotNull StringBuilder out) int
int
int
@Nullable Footnote
getReferencingNode
(@NotNull Node node) @NotNull BasedSequence[]
getText()
boolean
isItemParagraph
(Paragraph node) boolean
boolean
isParagraphWrappingDisabled
(Paragraph node, ListOptions listOptions, DataHolder options) boolean
void
setClosingMarker
(BasedSequence closingMarker) void
setFirstReferenceOffset
(int firstReferenceOffset) void
setFootnote
(BasedSequence footnote) void
setFootnoteOrdinal
(int footnoteOrdinal) void
setFootnoteReferences
(int footnoteReferences) void
setOpeningMarker
(BasedSequence openingMarker) void
setText
(BasedSequence text) 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, 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:
compareTo
in interfaceComparable<FootnoteBlock>
-
getFootnoteReferences
public int getFootnoteReferences() -
setFootnoteReferences
public void setFootnoteReferences(int footnoteReferences) -
getReferencingNode
- Specified by:
getReferencingNode
in 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:
getAstExtra
in classNode
-
getSegments
- Specified by:
getSegments
in classNode
-
getOpeningMarker
-
setOpeningMarker
-
getText
-
setText
-
getClosingMarker
-
setClosingMarker
-
getFootnote
-
setFootnote
-
isItemParagraph
- Specified by:
isItemParagraph
in interfaceParagraphItemContainer
-
isParagraphWrappingDisabled
public boolean isParagraphWrappingDisabled(Paragraph node, ListOptions listOptions, DataHolder options) - Specified by:
isParagraphWrappingDisabled
in interfaceParagraphItemContainer
-
isParagraphInTightListItem
- Specified by:
isParagraphInTightListItem
in interfaceParagraphItemContainer
-