public class DumpSpecReader extends SpecReader
SpecReader.State| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
exampleComment |
protected StringBuilder |
sb |
protected FullSpecTestCase |
testCase |
ast, comment, EXAMPLE_BREAK, EXAMPLE_KEYWORD, EXAMPLE_START, EXAMPLE_START_NBSP, EXAMPLE_TEST_BREAK, EXAMPLE_TEST_START, exampleNumber, examples, html, inputStream, OPTIONS_KEYWORD, OPTIONS_PATTERN, OPTIONS_STRING, optionsSet, section, SECTION_PATTERN, source, state, TYPE_BREAK, TYPE_TEST_BREAK| Constructor and Description |
|---|
DumpSpecReader(InputStream stream,
FullSpecTestCase testCase) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSpecExample(SpecExample example) |
static void |
addSpecExample(StringBuilder sb,
String source,
String html,
String ast,
String optionsSet,
boolean includeExampleCoords,
String section,
int number) |
static String |
addSpecExample(String source,
String html,
String ast,
String optionsSet) |
protected void |
addSpecLine(String line) |
String |
getFullSpec() |
static String |
showTabs(String s) |
static String |
trimTrailingEOL(String parseSource) |
static String |
unShowTabs(String s) |
getSpecInputStream, getSpecInputStream, processLine, read, readExamples, readExamples, readExamples, readExamplesAsString, readExamplesAsString, readExamplesAsString, readSpec, readSpec, resetContentsprotected final StringBuilder sb
protected final FullSpecTestCase testCase
protected StringBuilder exampleComment
public DumpSpecReader(InputStream stream, FullSpecTestCase testCase)
public String getFullSpec()
protected void addSpecLine(String line)
addSpecLine in class SpecReaderprotected void addSpecExample(SpecExample example)
addSpecExample in class SpecReaderpublic static String addSpecExample(String source, String html, String ast, String optionsSet)
public static void addSpecExample(StringBuilder sb, String source, String html, String ast, String optionsSet, boolean includeExampleCoords, String section, int number)
Copyright © 2018. All rights reserved.