gherkin.formatter
Interface Formatter

All Superinterfaces:
Closeable
All Known Implementing Classes:
FilterFormatter, JSONFormatter, JSONPrettyFormatter, PrettyFormatter

public interface Formatter
extends Closeable

This is the interface you should implement if you want your own custom formatter.


Method Summary
 void background(Background background)
           
 void close()
          Closes all underlying streams.
 void done()
          Indicates that the last file has been processed.
 void eof()
          Indicates the End-Of-File for a Gherkin document (.feature file)
 void examples(Examples examples)
           
 void feature(Feature feature)
           
 void scenario(Scenario scenario)
           
 void scenarioOutline(ScenarioOutline scenarioOutline)
           
 void step(Step step)
           
 void syntaxError(String state, String event, List<String> legalEvents, String uri, Integer line)
           
 void uri(String uri)
           
 

Method Detail

uri

void uri(String uri)

feature

void feature(Feature feature)

background

void background(Background background)

scenario

void scenario(Scenario scenario)

scenarioOutline

void scenarioOutline(ScenarioOutline scenarioOutline)

examples

void examples(Examples examples)

step

void step(Step step)

eof

void eof()
Indicates the End-Of-File for a Gherkin document (.feature file)


syntaxError

void syntaxError(String state,
                 String event,
                 List<String> legalEvents,
                 String uri,
                 Integer line)

done

void done()
Indicates that the last file has been processed. This should print out any closing output, such as completing the JSON string, but it should *not* close any underlying streams/writers.


close

void close()
Closes all underlying streams.

Specified by:
close in interface Closeable


Copyright © 2012. All Rights Reserved.