Class SoftLineBreak

java.lang.Object
com.vladsch.flexmark.util.ast.Node
com.vladsch.flexmark.ast.SoftLineBreak
All Implemented Interfaces:
DoNotAttributeDecorate, DoNotTrim, TextContainer

public class SoftLineBreak extends Node implements DoNotAttributeDecorate, DoNotTrim, TextContainer
  • Constructor Details

    • SoftLineBreak

      public SoftLineBreak()
    • SoftLineBreak

      public SoftLineBreak(BasedSequence chars)
  • Method Details

    • getSegments

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

      public void setChars(@NotNull @NotNull BasedSequence chars)
      Overrides:
      setChars in class Node
    • setCharsFromContentOnly

      public void setCharsFromContentOnly()
      Overrides:
      setCharsFromContentOnly in class Node
    • setCharsFromContent

      public void setCharsFromContent()
      Overrides:
      setCharsFromContent in class Node
    • setCharsFromSegments

      public void setCharsFromSegments()
      Description copied from class: Node
      Set the node's char string from segments making up the node's characters.

      Used to get segments after the some of the node's elements were modified

      Overrides:
      setCharsFromSegments in class Node
    • 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