public class DumpSpecReader extends SpecReader
SpecReader.State| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
exampleComment |
protected StringBuilder |
sb |
protected StringBuilder |
sbExp |
protected SpecExampleProcessor |
testCase |
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 and Description |
|---|
DumpSpecReader(@NotNull InputStream stream,
@NotNull SpecExampleProcessor testCase,
@NotNull ResourceLocation location,
boolean compoundSections) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSpecExample(@NotNull SpecExample specExample) |
void |
addSpecLine(String line,
boolean isSpecExampleOpen) |
String |
getExpectedFullSpec() |
String |
getFullSpec() |
void |
readExamples() |
create, create, createAndReadExamples, createAndReadExamples, getExamples, getExamplesSourceAsString, getFileUrl, getResourceLocation, processLine, resetContentsprotected final StringBuilder sb
protected final StringBuilder sbExp
protected final SpecExampleProcessor testCase
protected StringBuilder exampleComment
public DumpSpecReader(@NotNull
@NotNull InputStream stream,
@NotNull
@NotNull SpecExampleProcessor testCase,
@NotNull
@NotNull ResourceLocation location,
boolean compoundSections)
public String getFullSpec()
public String getExpectedFullSpec()
public void readExamples()
readExamples in class SpecReaderpublic void addSpecLine(String line, boolean isSpecExampleOpen)
addSpecLine in class SpecReaderprotected void addSpecExample(@NotNull
@NotNull SpecExample specExample)
addSpecExample in class SpecReaderCopyright © 2020. All rights reserved.