|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgherkin.formatter.PrettyFormatter
public class PrettyFormatter
This class pretty prints feature files like they were in the source, only
prettier. That is, with consistent indentation. This class is also a Reporter,
which means it can be used to print execution results - highlighting arguments,
printing source information and exception information.
| Constructor Summary | |
|---|---|
PrettyFormatter(Appendable out,
boolean monochrome,
boolean executing)
|
|
| Method Summary | |
|---|---|
void |
after(Match match,
Result result)
|
void |
background(Background background)
|
void |
before(Match match,
Result result)
|
void |
close()
Closes all underlying streams. |
void |
docString(DocString docString)
|
void |
done()
Indicates that the last file has been processed. |
void |
embedding(String mimeType,
byte[] data)
|
void |
eof()
Indicates the End-Of-File for a Gherkin document (.feature file) |
void |
examples(Examples examples)
|
void |
feature(Feature feature)
|
void |
match(Match match)
|
void |
nextRow()
|
void |
result(Result result)
|
void |
row(List<CellResult> cellResults)
|
void |
scenario(Scenario scenario)
|
void |
scenarioOutline(ScenarioOutline scenarioOutline)
|
void |
setMonochrome(boolean monochrome)
|
void |
step(Step step)
|
void |
syntaxError(String state,
String event,
List<String> legalEvents,
String uri,
Integer line)
|
void |
table(List<? extends Row> rows)
|
void |
uri(String uri)
|
void |
write(String text)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrettyFormatter(Appendable out,
boolean monochrome,
boolean executing)
| Method Detail |
|---|
public void setMonochrome(boolean monochrome)
public void uri(String uri)
uri in interface Formatterpublic void feature(Feature feature)
feature in interface Formatterpublic void background(Background background)
background in interface Formatterpublic void scenario(Scenario scenario)
scenario in interface Formatterpublic void scenarioOutline(ScenarioOutline scenarioOutline)
scenarioOutline in interface Formatterpublic void examples(Examples examples)
examples in interface Formatterpublic void step(Step step)
step in interface Formatterpublic void match(Match match)
match in interface Reporter
public void embedding(String mimeType,
byte[] data)
embedding in interface Reporterpublic void write(String text)
write in interface Reporterpublic void result(Result result)
result in interface Reporter
public void before(Match match,
Result result)
before in interface Reporter
public void after(Match match,
Result result)
after in interface Reporterpublic void table(List<? extends Row> rows)
public void row(List<CellResult> cellResults)
public void nextRow()
public void syntaxError(String state,
String event,
List<String> legalEvents,
String uri,
Integer line)
syntaxError in interface Formatterpublic void done()
Formatter
done in interface Formatterpublic void close()
Formatter
close in interface Formatterclose in interface Closeablepublic void docString(DocString docString)
public void eof()
Formatter
eof in interface Formatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||