Package com.vladsch.flexmark.util.ast
Class ContentNode
java.lang.Object
com.vladsch.flexmark.util.ast.Node
com.vladsch.flexmark.util.ast.ContentNode
- All Implemented Interfaces:
Content
- Direct Known Subclasses:
Block
-
Field Summary
FieldsFields inherited from class com.vladsch.flexmark.util.ast.Node
AST_ADAPTER, EMPTY_SEGMENTS, firstChild, next, SPLICE
-
Constructor Summary
ConstructorsConstructorDescriptionContentNode
(@NotNull BlockContent blockContent) ContentNode
(@NotNull BasedSequence chars) ContentNode
(@NotNull BasedSequence chars, @NotNull List<BasedSequence> lineSegments) ContentNode
(@NotNull List<BasedSequence> lineSegments) -
Method Summary
Modifier and TypeMethodDescription@NotNull BasedSequence
@NotNull BasedSequence
getContentChars
(int startLine, int endLine) @NotNull List
<BasedSequence> @NotNull List
<BasedSequence> getContentLines
(int startLine, int endLine) @NotNull BasedSequence
getLineChars
(int index) int
@NotNull BasedSequence
private static @NotNull BasedSequence
getSpanningChars
(@NotNull List<BasedSequence> lineSegments) void
setContent
(@NotNull BlockContent blockContent) void
setContent
(@NotNull BasedSequence chars, @NotNull List<BasedSequence> lineSegments) void
setContent
(@NotNull List<BasedSequence> lineSegments) void
setContentLine
(int lineIndex, @NotNull BasedSequence contentLine) void
setContentLines
(@NotNull List<BasedSequence> contentLines) 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, getAstExtra, 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, getParent, getPrevious, getPreviousAny, getPreviousAnyNot, getReversedChildIterator, getReversedChildren, getReversedDescendants, getSegments, 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, setParent, spanningChars, startOfLine, takeChildren, toAstString, toSegmentSpan, toString, toStringAttributes, unlink
-
Field Details
-
lineSegments
-
-
Constructor Details
-
ContentNode
public ContentNode() -
ContentNode
-
ContentNode
public ContentNode(@NotNull @NotNull BasedSequence chars, @NotNull @NotNull List<BasedSequence> lineSegments) -
ContentNode
-
ContentNode
-
-
Method Details
-
setContent
public void setContent(@NotNull @NotNull BasedSequence chars, @NotNull @NotNull List<BasedSequence> lineSegments) -
setContent
-
setContent
-
getSpanningChars
- Specified by:
getSpanningChars
in interfaceContent
-
getSpanningChars
@NotNull private static @NotNull BasedSequence getSpanningChars(@NotNull @NotNull List<BasedSequence> lineSegments) -
getLineCount
public int getLineCount()- Specified by:
getLineCount
in interfaceContent
-
getLineChars
- Specified by:
getLineChars
in interfaceContent
-
getContentLines
- Specified by:
getContentLines
in interfaceContent
-
getContentLines
- Specified by:
getContentLines
in interfaceContent
-
getContentChars
- Specified by:
getContentChars
in interfaceContent
-
getContentChars
- Specified by:
getContentChars
in interfaceContent
-
setContentLines
-
setContentLine
-