Class ContentNode

  • All Implemented Interfaces:
    Content
    Direct Known Subclasses:
    Block

    public abstract class ContentNode
    extends Node
    implements Content
    • Field Detail

      • lineSegments

        protected List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments
    • Constructor Detail

      • ContentNode

        public ContentNode()
      • ContentNode

        public ContentNode​(@NotNull
                           @NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars)
      • ContentNode

        public ContentNode​(@NotNull
                           @NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars,
                           @NotNull
                           @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
      • ContentNode

        public ContentNode​(@NotNull
                           @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
      • ContentNode

        public ContentNode​(@NotNull
                           @NotNull BlockContent blockContent)
    • Method Detail

      • setContent

        public void setContent​(@NotNull
                               @NotNull com.vladsch.flexmark.util.sequence.BasedSequence chars,
                               @NotNull
                               @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
      • setContent

        public void setContent​(@NotNull
                               @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> lineSegments)
      • setContent

        public void setContent​(@NotNull
                               @NotNull BlockContent blockContent)
      • getSpanningChars

        @NotNull
        public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getSpanningChars()
        Specified by:
        getSpanningChars in interface Content
      • getLineChars

        @NotNull
        public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getLineChars​(int index)
        Specified by:
        getLineChars in interface Content
      • getContentLines

        @NotNull
        public @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> getContentLines()
        Specified by:
        getContentLines in interface Content
      • getContentLines

        @NotNull
        public @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> getContentLines​(int startLine,
                                                                                               int endLine)
        Specified by:
        getContentLines in interface Content
      • getContentChars

        @NotNull
        public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getContentChars()
        Specified by:
        getContentChars in interface Content
      • getContentChars

        @NotNull
        public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence getContentChars​(int startLine,
                                                                                         int endLine)
        Specified by:
        getContentChars in interface Content
      • setContentLines

        public void setContentLines​(@NotNull
                                    @NotNull List<com.vladsch.flexmark.util.sequence.BasedSequence> contentLines)
      • setContentLine

        public void setContentLine​(int lineIndex,
                                   @NotNull
                                   @NotNull com.vladsch.flexmark.util.sequence.BasedSequence contentLine)