Top Fields Constructors Methods
com.vladsch.flexmark.ext.wikilink

public Class WikiNode

extends Node
implements DoNotDecorate, TextContainer, LinkRefDerived
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.ast.LinkRefDerived, com.vladsch.flexmark.util.ast.TextContainer, com.vladsch.flexmark.util.ast.DoNotDecorate
Known Direct Subclasses
com.vladsch.flexmark.ext.wikilink.WikiImage, com.vladsch.flexmark.ext.wikilink.WikiLink
Imports
com.vladsch.flexmark.ast.LinkRefDerived, com.vladsch.flexmark.util.ast.DoNotDecorate, .Node, .NodeVisitor, .TextContainer, com.vladsch.flexmark.util.misc.CharPredicate, com.vladsch.flexmark.util.sequence.BasedSequence, .Escaping, .ReplacedTextMapper, com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder, org.jetbrains.annotations.NotNull

Field Summary

Modifier and TypeField and Description
protected BasedSequence
protected BasedSequence
protected BasedSequence
protected BasedSequence
protected final boolean
protected BasedSequence
protected BasedSequence
public static final char
protected BasedSequence
protected BasedSequence
Inherited from com.vladsch.flexmark.util.ast.Node:
AST_ADAPTEREMPTY_SEGMENTSSPLICE

Constructor Summary

AccessConstructor and Description
public
WikiNode(boolean linkIsFirst)

public
WikiNode(BasedSequence chars, boolean linkIsFirst, boolean allowAnchors, boolean canEscapePipe, boolean canEscapeAnchor)

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 BasedSequence
public BasedSequence
public void
public BasedSequence
public BasedSequence
public BasedSequence
public @NotNull BasedSequence[]
public BasedSequence
public BasedSequence
public boolean
public boolean

Returns:

true if this node will be rendered as text because it depends on a reference which is not defined.
isTentative
()

Implements com.vladsch.flexmark.ast.LinkRefDerived.isTentative.

public void
public void
public void
public void
setLinkChars(BasedSequence linkChars, boolean allowAnchors, boolean canEscapePipe, boolean canEscapeAnchor)

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

Field Detail

anchorMarkerback to summary
protected BasedSequence anchorMarker
anchorRefback to summary
protected BasedSequence anchorRef
closingMarkerback to summary
protected BasedSequence closingMarker
linkIsFirstback to summary
protected final boolean linkIsFirst
openingMarkerback to summary
protected BasedSequence openingMarker
pageRefback to summary
protected BasedSequence pageRef
SEPARATOR_CHARback to summary
public static final char SEPARATOR_CHAR
textback to summary
protected BasedSequence text
textSeparatorMarkerback to summary
protected BasedSequence textSeparatorMarker

Constructor Detail

WikiNodeback to summary
public WikiNode(boolean linkIsFirst)
WikiNodeback to summary
public WikiNode(BasedSequence chars, boolean linkIsFirst, boolean allowAnchors, boolean canEscapePipe, boolean canEscapeAnchor)

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
getAnchorMarkerback to summary
public BasedSequence getAnchorMarker()
getAnchorRefback to summary
public BasedSequence getAnchorRef()
getAstExtraback to summary
public void getAstExtra(@NotNull StringBuilder out)
Annotations
@Override
getClosingMarkerback to summary
public BasedSequence getClosingMarker()
getOpeningMarkerback to summary
public BasedSequence getOpeningMarker()
getPageRefback to summary
public BasedSequence getPageRef()
getSegmentsback to summary
public @NotNull BasedSequence[] getSegments()

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

Annotations
@NotNull
@Override
getTextback to summary
public BasedSequence getText()
getTextSeparatorMarkerback to summary
public BasedSequence getTextSeparatorMarker()
isLinkIsFirstback to summary
public boolean isLinkIsFirst()
isTentativeback to summary
public boolean isTentative()

Implements com.vladsch.flexmark.ast.LinkRefDerived.isTentative.

Returns:boolean

true if this node will be rendered as text because it depends on a reference which is not defined.

Annotations
@Override
setAnchorMarkerback to summary
public void setAnchorMarker(BasedSequence anchorMarker)
setAnchorRefback to summary
public void setAnchorRef(BasedSequence anchorRef)
setClosingMarkerback to summary
public void setClosingMarker(BasedSequence closingMarker)
setLinkCharsback to summary
public void setLinkChars(BasedSequence linkChars, boolean allowAnchors, boolean canEscapePipe, boolean canEscapeAnchor)
setOpeningMarkerback to summary
public void setOpeningMarker(BasedSequence openingMarker)
setPageRefback to summary
public void setPageRef(BasedSequence pageRef)
setTextback to summary
public void setText(BasedSequence text)
setTextSeparatorMarkerback to summary
public void setTextSeparatorMarker(BasedSequence textSeparatorMarker)