Package com.vladsch.flexmark.test.util
Class DumpSpecReader
- java.lang.Object
-
- com.vladsch.flexmark.test.util.spec.SpecReader
-
- com.vladsch.flexmark.test.util.DumpSpecReader
-
public class DumpSpecReader extends SpecReader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vladsch.flexmark.test.util.spec.SpecReader
SpecReader.State
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringBuilder
exampleComment
protected java.lang.StringBuilder
sb
protected java.lang.StringBuilder
sbExp
protected SpecExampleProcessor
testCase
-
Fields inherited from class com.vladsch.flexmark.test.util.spec.SpecReader
ast, comment, commentLineNumber, compoundSections, contentLineNumber, EXAMPLE_BREAK, EXAMPLE_KEYWORD, EXAMPLE_START, EXAMPLE_START_NBSP, EXAMPLE_TEST_BREAK, EXAMPLE_TEST_START, exampleNumber, examples, html, inputStream, lastSectionLevel, lineNumber, OPTIONS_KEYWORD, OPTIONS_PATTERN, OPTIONS_STRING, optionsSet, resourceLocation, section, SECTION_BREAK, SECTION_PATTERN, SECTION_TEST_BREAK, sections, source, state
-
-
Constructor Summary
Constructors Constructor Description DumpSpecReader(@NotNull java.io.InputStream stream, @NotNull SpecExampleProcessor testCase, @NotNull ResourceLocation location, boolean compoundSections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSpecExample(@NotNull SpecExample specExample)
void
addSpecLine(java.lang.String line, boolean isSpecExampleOpen)
java.lang.String
getExpectedFullSpec()
java.lang.String
getFullSpec()
void
readExamples()
-
Methods inherited from class com.vladsch.flexmark.test.util.spec.SpecReader
create, create, createAndReadExamples, createAndReadExamples, getExamples, getExamplesSourceAsString, getFileUrl, getResourceLocation, processLine, resetContents
-
-
-
-
Field Detail
-
sb
protected final java.lang.StringBuilder sb
-
sbExp
protected final java.lang.StringBuilder sbExp
-
testCase
protected final SpecExampleProcessor testCase
-
exampleComment
protected java.lang.StringBuilder exampleComment
-
-
Constructor Detail
-
DumpSpecReader
public DumpSpecReader(@NotNull @NotNull java.io.InputStream stream, @NotNull @NotNull SpecExampleProcessor testCase, @NotNull @NotNull ResourceLocation location, boolean compoundSections)
-
-
Method Detail
-
getFullSpec
public java.lang.String getFullSpec()
-
getExpectedFullSpec
public java.lang.String getExpectedFullSpec()
-
readExamples
public void readExamples()
- Overrides:
readExamples
in classSpecReader
-
addSpecLine
public void addSpecLine(java.lang.String line, boolean isSpecExampleOpen)
- Overrides:
addSpecLine
in classSpecReader
-
addSpecExample
protected void addSpecExample(@NotNull @NotNull SpecExample specExample)
- Overrides:
addSpecExample
in classSpecReader
-
-