public class DumpSpecReader extends SpecReader implements ActualExampleModifier
SpecReader.State| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
exampleComment |
protected ActualExampleModifier |
exampleModifier |
protected StringBuilder |
sb |
protected FullSpecTestCase |
testCase |
ast, comment, contentLineNumber, EXAMPLE_BREAK, EXAMPLE_KEYWORD, EXAMPLE_START, EXAMPLE_START_NBSP, EXAMPLE_TEST_BREAK, EXAMPLE_TEST_START, exampleNumber, examples, fileUrl, html, inputStream, lineNumber, 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,
ActualExampleModifier exampleModifier) |
DumpSpecReader(InputStream stream,
FullSpecTestCase testCase,
String fileUrl,
ActualExampleModifier exampleModifier) |
| Modifier and Type | Method and Description |
|---|---|
String |
actualAst(String ast,
String optionSet) |
String |
actualHtml(String html,
String optionSet) |
String |
actualSource(String source,
String optionSet) |
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) |
void |
addSpecLine(String line) |
String |
getFullSpec() |
static String |
showTabs(String s) |
static String |
trimTrailingEOL(String parseSource) |
static String |
unShowTabs(String s) |
createAndReadExamples, createAndReadExamples, getFileUrl, getSpecInputFileUrl, getSpecInputStream, getSpecInputStream, processLine, read, readExamples, readExamples, readExamples, readExamples, readExamples, readExamplesAsString, readExamplesAsString, readExamplesAsString, readSpec, readSpec, resetContentsprotected final StringBuilder sb
protected final FullSpecTestCase testCase
protected StringBuilder exampleComment
protected final ActualExampleModifier exampleModifier
public DumpSpecReader(InputStream stream, FullSpecTestCase testCase, ActualExampleModifier exampleModifier)
public DumpSpecReader(InputStream stream, FullSpecTestCase testCase, String fileUrl, ActualExampleModifier exampleModifier)
public String getFullSpec()
public void addSpecLine(String line)
addSpecLine in class SpecReaderpublic String actualSource(String source, String optionSet)
actualSource in interface ActualExampleModifierpublic String actualHtml(String html, String optionSet)
actualHtml in interface ActualExampleModifierpublic String actualAst(String ast, String optionSet)
actualAst in interface ActualExampleModifierprotected 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 © 2019. All rights reserved.