gherkin.formatter
Class JSONFormatter

java.lang.Object
  extended by gherkin.formatter.JSONFormatter
All Implemented Interfaces:
Formatter, Reporter

public class JSONFormatter
extends Object
implements Reporter, Formatter


Constructor Summary
JSONFormatter(Appendable out)
           
 
Method Summary
 void background(Background background)
           
 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 result(Result result)
           
 void scenario(Scenario scenario)
           
 void scenarioOutline(ScenarioOutline scenarioOutline)
           
 void step(Step step)
           
 void syntaxError(String state, String event, List<String> legalEvents, String uri, int line)
           
 void uri(String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONFormatter

public JSONFormatter(Appendable out)
Method Detail

done

public void done()
Description copied from interface: Formatter
Indicates that the last file has been processed.

Specified by:
done in interface Formatter

uri

public void uri(String uri)
Specified by:
uri in interface Formatter

feature

public void feature(Feature feature)
Specified by:
feature in interface Formatter

background

public void background(Background background)
Specified by:
background in interface Formatter

scenario

public void scenario(Scenario scenario)
Specified by:
scenario in interface Formatter

scenarioOutline

public void scenarioOutline(ScenarioOutline scenarioOutline)
Specified by:
scenarioOutline in interface Formatter

examples

public void examples(Examples examples)
Specified by:
examples in interface Formatter

step

public void step(Step step)
Specified by:
step in interface Formatter

match

public void match(Match match)
Specified by:
match in interface Reporter

result

public void result(Result result)
Specified by:
result in interface Reporter

embedding

public void embedding(String mimeType,
                      byte[] data)
Specified by:
embedding in interface Reporter

eof

public void eof()
Description copied from interface: Formatter
Indicates the End-Of-File for a Gherkin document (.feature file)

Specified by:
eof in interface Formatter

syntaxError

public void syntaxError(String state,
                        String event,
                        List<String> legalEvents,
                        String uri,
                        int line)
Specified by:
syntaxError in interface Formatter


Copyright © 2011. All Rights Reserved.