Top Description Fields Constructors Methods
com.vladsch.flexmark.ext.typographic

public Class TypographicSmarts

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

A TypographicSmarts node

Field Summary

Modifier and TypeField and Description
private String
Inherited from com.vladsch.flexmark.util.ast.Node:
AST_ADAPTEREMPTY_SEGMENTSSPLICE

Constructor Summary

AccessConstructor and Description
public
public
public
TypographicSmarts(String typographicText)

public
TypographicSmarts(BasedSequence chars, String typographicText)

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[]
public String
public void
setTypographicText(String typographicText)

protected @NotNull String
Inherited from com.vladsch.flexmark.util.ast.Node:
appendChainappendChildastCharsastExtraCharsastStringbaseSubSequencebaseSubSequencecountAncestorsOfTypecountDirectAncestorsOfTypedelimitedSegmentSpandelimitedSegmentSpanCharsendOfLineextractChainToextractToFirstInChaingetAncestorOfTypegetAstExtragetBaseSequencegetBlankLineSiblinggetCharsgetCharsFromSegmentsgetChildCharsgetChildIteratorgetChildOfTypegetChildrengetDescendantsgetDocumentgetEmptyPrefixgetEmptySuffixgetEndLineNumbergetEndOffsetgetEndOfLinegetExactChildCharsgetFirstChildgetFirstChildAnygetFirstChildAnyNotgetFirstInChaingetGrandParentgetLastBlankLineChildgetLastChildgetLastChildAnygetLastChildAnyNotgetLastInChaingetLeadSegmentgetLineColumnAtEndgetLineNumbergetNextgetNextAnygetNextAnyNotgetNodeNamegetNodeOfTypeIndexgetNodeOfTypeIndexgetOldestAncestorOfTypeAftergetParentgetPreviousgetPreviousAnygetPreviousAnyNotgetReversedChildIteratorgetReversedChildrengetReversedDescendantsgetSegmentsForCharsgetSourceRangegetStartLineNumbergetStartOffsetgetStartOfLinegetTextLengthgetTrailSegmenthasChildrenhasOrMoreChildreninsertAfterinsertBeforeinsertChainAfterinsertChainBeforeisOrDescendantOfTypelineColumnAtIndexlineColumnAtStartmoveTrailingBlankLinesprependChildremoveChildrensegmentSpansegmentSpansegmentSpanCharssegmentSpanCharssegmentSpanCharssegmentSpanCharsToVisiblesetCharssetCharsFromContentsetCharsFromContentOnlysetCharsFromSegmentssetParentspanningCharsstartOfLinetakeChildrentoAstStringtoSegmentSpantoStringunlink

Field Detail

typographicTextback to summary
private String typographicText

Constructor Detail

TypographicSmartsback to summary
public TypographicSmarts()
TypographicSmartsback to summary
public TypographicSmarts(BasedSequence chars)
TypographicSmartsback to summary
public TypographicSmarts(String typographicText)
TypographicSmartsback to summary
public TypographicSmarts(BasedSequence chars, String typographicText)

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
getTypographicTextback to summary
public String getTypographicText()
setTypographicTextback to summary
public void setTypographicText(String typographicText)
toStringAttributesback to summary
protected @NotNull String toStringAttributes()

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

Annotations
@NotNull
@Override