|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gherkin.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 Formatter
public void feature(Feature feature)
feature
in interface Formatter
public void background(Background background)
background
in interface Formatter
public void scenario(Scenario scenario)
scenario
in interface Formatter
public void scenarioOutline(ScenarioOutline scenarioOutline)
scenarioOutline
in interface Formatter
public void examples(Examples examples)
examples
in interface Formatter
public void step(Step step)
step
in interface Formatter
public void match(Match match)
match
in interface Reporter
public void embedding(String mimeType, byte[] data)
embedding
in interface Reporter
public void write(String text)
write
in interface Reporter
public 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 Reporter
public 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 Formatter
public void done()
Formatter
done
in interface Formatter
public void close()
Formatter
close
in interface Formatter
close
in interface Closeable
public 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 |