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.StringBuilderexampleCommentprotected java.lang.StringBuildersbprotected java.lang.StringBuildersbExpprotected SpecExampleProcessortestCase-
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 voidaddSpecExample(@NotNull SpecExample specExample)voidaddSpecLine(java.lang.String line, boolean isSpecExampleOpen)java.lang.StringgetExpectedFullSpec()java.lang.StringgetFullSpec()voidreadExamples()-
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:
readExamplesin classSpecReader
-
addSpecLine
public void addSpecLine(java.lang.String line, boolean isSpecExampleOpen)- Overrides:
addSpecLinein classSpecReader
-
addSpecExample
protected void addSpecExample(@NotNull @NotNull SpecExample specExample)- Overrides:
addSpecExamplein classSpecReader
-
-