Class WikiNode

java.lang.Object
com.vladsch.flexmark.util.ast.Node
com.vladsch.flexmark.ext.wikilink.WikiNode
All Implemented Interfaces:
LinkRefDerived, DoNotDecorate, TextContainer
Direct Known Subclasses:
WikiImage, WikiLink

public class WikiNode extends Node implements DoNotDecorate, TextContainer, LinkRefDerived
  • Field Details

  • Constructor Details

    • WikiNode

      public WikiNode(boolean linkIsFirst)
    • WikiNode

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

    • getSegments

      @NotNull public @NotNull BasedSequence[] getSegments()
      Specified by:
      getSegments in class Node
    • getAstExtra

      public void getAstExtra(@NotNull @NotNull StringBuilder out)
      Overrides:
      getAstExtra in class Node
    • isLinkIsFirst

      public boolean isLinkIsFirst()
    • isTentative

      public boolean isTentative()
      Specified by:
      isTentative in interface LinkRefDerived
      Returns:
      true if this node will be rendered as text because it depends on a reference which is not defined.
    • getOpeningMarker

      public BasedSequence getOpeningMarker()
    • setOpeningMarker

      public void setOpeningMarker(BasedSequence openingMarker)
    • getPageRef

      public BasedSequence getPageRef()
    • setPageRef

      public void setPageRef(BasedSequence pageRef)
    • getTextSeparatorMarker

      public BasedSequence getTextSeparatorMarker()
    • setTextSeparatorMarker

      public void setTextSeparatorMarker(BasedSequence textSeparatorMarker)
    • getText

      public BasedSequence getText()
    • setText

      public void setText(BasedSequence text)
    • getClosingMarker

      public BasedSequence getClosingMarker()
    • setClosingMarker

      public void setClosingMarker(BasedSequence closingMarker)
    • getAnchorMarker

      public BasedSequence getAnchorMarker()
    • setAnchorMarker

      public void setAnchorMarker(BasedSequence anchorMarker)
    • getAnchorRef

      public BasedSequence getAnchorRef()
    • setAnchorRef

      public void setAnchorRef(BasedSequence anchorRef)
    • getLink

      public BasedSequence getLink()
    • setLink

      public void setLink(BasedSequence linkChars, boolean allowAnchors, boolean canEscapeAnchor)
    • setLinkChars

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

      public boolean collectText(ISequenceBuilder<? extends ISequenceBuilder<?,BasedSequence>,BasedSequence> out, int flags, NodeVisitor nodeVisitor)
      Description copied from interface: TextContainer
      Append node's text
      Specified by:
      collectText in interface TextContainer
      Parameters:
      out - sequence build to which to append text
      flags - collection flags
      nodeVisitor - node visitor to use to visit children
      Returns:
      true if child nodes should be visited