Package com.vladsch.flexmark.util.ast
Class ContentNode
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.Node
-
- com.vladsch.flexmark.util.ast.ContentNode
-
-
Field Summary
Fields Modifier and Type Field Description protected List<com.vladsch.flexmark.util.sequence.BasedSequence>lineSegments-
Fields inherited from class com.vladsch.flexmark.util.ast.Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
-
-
Constructor Summary
Constructors Constructor Description ContentNode()ContentNode(@NotNull BlockContent blockContent)ContentNode(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars)ContentNode(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars, @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)ContentNode(@NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull com.vladsch.flexmark.util.sequence.BasedSequencegetContentChars()@NotNull com.vladsch.flexmark.util.sequence.BasedSequencegetContentChars(int startLine, int endLine)@NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence>getContentLines()@NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence>getContentLines(int startLine, int endLine)@NotNull com.vladsch.flexmark.util.sequence.BasedSequencegetLineChars(int index)intgetLineCount()@NotNull com.vladsch.flexmark.util.sequence.BasedSequencegetSpanningChars()voidsetContent(@NotNull BlockContent blockContent)voidsetContent(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars, @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)voidsetContent(@NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)voidsetContentLine(int lineIndex, @NotNull com.vladsch.flexmark.util.sequence.BasedSequence contentLine)voidsetContentLines(@NotNull List<com.vladsch.flexmark.util.sequence.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 Detail
-
lineSegments
protected List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments
-
-
Constructor Detail
-
ContentNode
public ContentNode()
-
ContentNode
public ContentNode(@NotNull @NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars)
-
ContentNode
public ContentNode(@NotNull @NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars, @NotNull @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
-
ContentNode
public ContentNode(@NotNull @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
-
ContentNode
public ContentNode(@NotNull @NotNull BlockContent blockContent)
-
-
Method Detail
-
setContent
public void setContent(@NotNull @NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars, @NotNull @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
-
setContent
public void setContent(@NotNull @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
-
setContent
public void setContent(@NotNull @NotNull BlockContent blockContent)
-
getSpanningChars
@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getSpanningChars()
- Specified by:
getSpanningCharsin interfaceContent
-
getLineCount
public int getLineCount()
- Specified by:
getLineCountin interfaceContent
-
getLineChars
@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getLineChars(int index)
- Specified by:
getLineCharsin interfaceContent
-
getContentLines
@NotNull public @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> getContentLines()
- Specified by:
getContentLinesin interfaceContent
-
getContentLines
@NotNull public @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> getContentLines(int startLine, int endLine)
- Specified by:
getContentLinesin interfaceContent
-
getContentChars
@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getContentChars()
- Specified by:
getContentCharsin interfaceContent
-
getContentChars
@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getContentChars(int startLine, int endLine)- Specified by:
getContentCharsin interfaceContent
-
setContentLines
public void setContentLines(@NotNull @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> contentLines)
-
setContentLine
public void setContentLine(int lineIndex, @NotNull @NotNull com.vladsch.flexmark.util.sequence.BasedSequence contentLine)
-
-