Top Fields Constructors Methods
com.vladsch.flexmark.ast

public final Class Text

extends Node
implements TextContainer
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.util.ast.TextContainer
Imports
com.vladsch.flexmark.util.ast.Node, .NodeVisitor, .TextContainer, com.vladsch.flexmark.util.sequence.BasedSequence, .Escaping, .PrefixedSubSequence, .ReplacedTextMapper, com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder, org.jetbrains.annotations.NotNull

Field Summary

Inherited from com.vladsch.flexmark.util.ast.Node:
AST_ADAPTEREMPTY_SEGMENTSSPLICE

Constructor Summary

AccessConstructor and Description
public
Text()

public
public
Text(String chars)

public
Text(String chars, BasedSequence baseSeq)

Method Summary

Modifier and TypeMethod and Description
public boolean
collectText(ISequenceBuilder<? extends ISequenceBuilder<?, BasedSequence>, BasedSequence>
sequence build to which to append text
out
,
int
collection flags
flags
,
NodeVisitor
node visitor to use to visit children
nodeVisitor
)

Implements com.vladsch.flexmark.util.ast.TextContainer.collectText.

Append node's text

public void
public @NotNull BasedSequence[]
protected @NotNull String
Inherited from com.vladsch.flexmark.util.ast.Node:
appendChainappendChildastCharsastExtraCharsastStringbaseSubSequencebaseSubSequencecountAncestorsOfTypecountDirectAncestorsOfTypedelimitedSegmentSpandelimitedSegmentSpanCharsendOfLineextractChainToextractToFirstInChaingetAncestorOfTypegetAstExtragetBaseSequencegetBlankLineSiblinggetCharsgetCharsFromSegmentsgetChildCharsgetChildIteratorgetChildOfTypegetChildrengetDescendantsgetDocumentgetEmptyPrefixgetEmptySuffixgetEndLineNumbergetEndOffsetgetEndOfLinegetExactChildCharsgetFirstChildgetFirstChildAnygetFirstChildAnyNotgetFirstInChaingetGrandParentgetLastBlankLineChildgetLastChildgetLastChildAnygetLastChildAnyNotgetLastInChaingetLeadSegmentgetLineColumnAtEndgetLineNumbergetNextgetNextAnygetNextAnyNotgetNodeNamegetNodeOfTypeIndexgetNodeOfTypeIndexgetOldestAncestorOfTypeAftergetParentgetPreviousgetPreviousAnygetPreviousAnyNotgetReversedChildIteratorgetReversedChildrengetReversedDescendantsgetSegmentsForCharsgetSourceRangegetStartLineNumbergetStartOffsetgetStartOfLinegetTextLengthgetTrailSegmenthasChildrenhasOrMoreChildreninsertAfterinsertBeforeinsertChainAfterinsertChainBeforeisOrDescendantOfTypelineColumnAtIndexlineColumnAtStartmoveTrailingBlankLinesprependChildremoveChildrensegmentSpansegmentSpansegmentSpanCharssegmentSpanCharssegmentSpanCharssegmentSpanCharsToVisiblesetCharssetCharsFromContentsetCharsFromContentOnlysetCharsFromSegmentssetParentspanningCharsstartOfLinetakeChildrentoAstStringtoSegmentSpantoStringunlink

Constructor Detail

Textback to summary
public Text()
Textback to summary
public Text(BasedSequence chars)
Textback to summary
public Text(String chars)
Textback to summary
public Text(String chars, BasedSequence baseSeq)

Method Detail

collectTextback to summary
public boolean collectText(ISequenceBuilder<? extends ISequenceBuilder<?, BasedSequence>, BasedSequence> out, int flags, NodeVisitor nodeVisitor)

Implements com.vladsch.flexmark.util.ast.TextContainer.collectText.

Doc from com.vladsch.flexmark.util.ast.TextContainer.collectText.

Append node's text

Parameters
out:ISequenceBuilder<? extends ISequenceBuilder<?, BasedSequence>, BasedSequence>

sequence build to which to append text

flags:int

collection flags

nodeVisitor:NodeVisitor

node visitor to use to visit children

Returns:boolean

true if child nodes should be visited

Annotations
@Override
getAstExtraback to summary
public void getAstExtra(@NotNull StringBuilder out)
Annotations
@Override
getSegmentsback to summary
public @NotNull BasedSequence[] getSegments()

Implements abstract com.vladsch.flexmark.util.ast.Node.getSegments.

Annotations
@NotNull
@Override
toStringAttributesback to summary
protected @NotNull String toStringAttributes()

Overrides com.vladsch.flexmark.util.ast.Node.toStringAttributes.

Annotations
@NotNull
@Override