Top Fields Constructors Methods
com.vladsch.flexmark.util.ast

public abstract Class ContentNode

extends Node
implements Content
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.util.ast.Content
Known Direct Subclasses
com.vladsch.flexmark.util.ast.Block
Imports
com.vladsch.flexmark.util.sequence.BasedSequence, .SegmentedSequence, org.jetbrains.annotations.NotNull, java.util.ArrayList, .List

Field Summary

Modifier and TypeField and Description
protected List<BasedSequence>
Inherited from com.vladsch.flexmark.util.ast.Node:
AST_ADAPTEREMPTY_SEGMENTSfirstChildnextSPLICE

Constructor Summary

AccessConstructor and Description
public
public
public
public
public

Method Summary

Modifier and TypeMethod and Description
public @NotNull BasedSequence
public @NotNull BasedSequence
public @NotNull List<BasedSequence>
public @NotNull List<BasedSequence>
public @NotNull BasedSequence
public int
public @NotNull BasedSequence
private static @NotNull BasedSequence
public void
public void
public void
public void
setContentLine(int lineIndex, @NotNull BasedSequence contentLine)

public void
Inherited from com.vladsch.flexmark.util.ast.Node:
appendChainappendChildastCharsastExtraCharsastStringbaseSubSequencebaseSubSequencecountAncestorsOfTypecountDirectAncestorsOfTypedelimitedSegmentSpandelimitedSegmentSpanCharsendOfLineextractChainToextractToFirstInChaingetAncestorOfTypegetAstExtragetBaseSequencegetBlankLineSiblinggetCharsgetCharsFromSegmentsgetChildCharsgetChildIteratorgetChildOfTypegetChildrengetDescendantsgetDocumentgetEmptyPrefixgetEmptySuffixgetEndLineNumbergetEndOffsetgetEndOfLinegetExactChildCharsgetFirstChildgetFirstChildAnygetFirstChildAnyNotgetFirstInChaingetGrandParentgetLastBlankLineChildgetLastChildgetLastChildAnygetLastChildAnyNotgetLastInChaingetLeadSegmentgetLineColumnAtEndgetLineNumbergetNextgetNextAnygetNextAnyNotgetNodeNamegetNodeOfTypeIndexgetNodeOfTypeIndexgetOldestAncestorOfTypeAftergetParentgetPreviousgetPreviousAnygetPreviousAnyNotgetReversedChildIteratorgetReversedChildrengetReversedDescendantsgetSegmentsgetSegmentsForCharsgetSourceRangegetStartLineNumbergetStartOffsetgetStartOfLinegetTextLengthgetTrailSegmenthasChildrenhasOrMoreChildreninsertAfterinsertBeforeinsertChainAfterinsertChainBeforeisOrDescendantOfTypelineColumnAtIndexlineColumnAtStartmoveTrailingBlankLinesprependChildremoveChildrensegmentSpansegmentSpansegmentSpanCharssegmentSpanCharssegmentSpanCharssegmentSpanCharsToVisiblesetCharssetCharsFromContentsetCharsFromContentOnlysetCharsFromSegmentssetParentspanningCharsstartOfLinetakeChildrentoAstStringtoSegmentSpantoStringtoStringAttributesunlink

Field Detail

lineSegmentsback to summary
protected List<BasedSequence> lineSegments

Constructor Detail

ContentNodeback to summary
public ContentNode()
ContentNodeback to summary
public ContentNode(@NotNull BasedSequence chars)
ContentNodeback to summary
public ContentNode(@NotNull BasedSequence chars, @NotNull List<BasedSequence> lineSegments)
ContentNodeback to summary
public ContentNode(@NotNull List<BasedSequence> lineSegments)
ContentNodeback to summary
public ContentNode(@NotNull BlockContent blockContent)

Method Detail

getContentCharsback to summary
public @NotNull BasedSequence getContentChars()

Implements com.vladsch.flexmark.util.ast.Content.getContentChars.

Annotations
@NotNull
@Override
getContentCharsback to summary
public @NotNull BasedSequence getContentChars(int startLine, int endLine)

Implements com.vladsch.flexmark.util.ast.Content.getContentChars.

Annotations
@NotNull
@Override
getContentLinesback to summary
public @NotNull List<BasedSequence> getContentLines()

Implements com.vladsch.flexmark.util.ast.Content.getContentLines.

Annotations
@NotNull
@Override
getContentLinesback to summary
public @NotNull List<BasedSequence> getContentLines(int startLine, int endLine)

Implements com.vladsch.flexmark.util.ast.Content.getContentLines.

Annotations
@NotNull
@Override
getLineCharsback to summary
public @NotNull BasedSequence getLineChars(int index)

Implements com.vladsch.flexmark.util.ast.Content.getLineChars.

Annotations
@NotNull
@Override
getLineCountback to summary
public int getLineCount()

Implements com.vladsch.flexmark.util.ast.Content.getLineCount.

Annotations
@Override
getSpanningCharsback to summary
public @NotNull BasedSequence getSpanningChars()

Implements com.vladsch.flexmark.util.ast.Content.getSpanningChars.

Annotations
@Override
@NotNull
getSpanningCharsback to summary
private static @NotNull BasedSequence getSpanningChars(@NotNull List<BasedSequence> lineSegments)
Annotations
@NotNull
setContentback to summary
public void setContent(@NotNull BasedSequence chars, @NotNull List<BasedSequence> lineSegments)
setContentback to summary
public void setContent(@NotNull List<BasedSequence> lineSegments)
setContentback to summary
public void setContent(@NotNull BlockContent blockContent)
setContentLineback to summary
public void setContentLine(int lineIndex, @NotNull BasedSequence contentLine)
setContentLinesback to summary
public void setContentLines(@NotNull List<BasedSequence> contentLines)