Class SpecReader

java.lang.Object
com.vladsch.flexmark.test.util.spec.SpecReader
Direct Known Subclasses:
DumpSpecReader

public class SpecReader extends Object
  • Field Details

  • Constructor Details

    • SpecReader

      public SpecReader(@NotNull @NotNull InputStream stream, @NotNull @NotNull ResourceLocation location, boolean compoundSections)
  • Method Details

    • getFileUrl

      @NotNull public @NotNull String getFileUrl()
    • getResourceLocation

      @NotNull public @NotNull ResourceLocation getResourceLocation()
    • getExamples

      @NotNull public @NotNull List<SpecExample> getExamples()
    • getExamplesSourceAsString

      @NotNull public @NotNull List<String> getExamplesSourceAsString()
    • create

      @NotNull public static @NotNull SpecReader create(@NotNull @NotNull ResourceLocation location, boolean compoundSections)
    • create

      @NotNull public static <S extends SpecReader> S create(@NotNull @NotNull ResourceLocation location, @NotNull @NotNull SpecReaderFactory<S> readerFactory)
    • createAndReadExamples

      @NotNull public static @NotNull SpecReader createAndReadExamples(@NotNull @NotNull ResourceLocation location, boolean compoundSections)
    • createAndReadExamples

      @NotNull public static <S extends SpecReader> S createAndReadExamples(@NotNull @NotNull ResourceLocation location, @NotNull @NotNull SpecReaderFactory<S> readerFactory)
    • readExamples

      public void readExamples()
    • addSpecLine

      protected void addSpecLine(String line, boolean isSpecExampleOpen)
    • addSpecExample

      protected void addSpecExample(@NotNull @NotNull SpecExample example)
    • processLine

      protected void processLine(String line)
    • resetContents

      protected void resetContents()