Class TextContentImpl

java.lang.Object
com.github.weisj.jsvg.parser.impl.TextContentImpl
All Implemented Interfaces:
TextContent

public class TextContentImpl extends Object implements TextContent
  • Constructor Details

    • TextContentImpl

      public TextContentImpl(@NotNull @NotNull ParsedElement parent)
  • Method Details

    • contentLists

      @NotNull public @NotNull List<@NotNull List<TextContent.Segment>> contentLists()
    • currentContentList

      @NotNull public @NotNull List<TextContent.Segment> currentContentList()
    • addContentList

      public void addContentList()
    • contentAfterChildIndex

      @NotNull public @NotNull List<@NotNull TextContent.Segment> contentAfterChildIndex(int childIndex)
      Description copied from interface: TextContent
      Returns the list of text fragments after the child element at the given index. Returns the content before the first child if index is -1.
      Specified by:
      contentAfterChildIndex in interface TextContent
      Parameters:
      childIndex - the index of the child element
      Returns:
      the list of text fragments