Package io.cucumber.messages.types
Class GherkinDocument
- java.lang.Object
-
- io.cucumber.messages.types.GherkinDocument
-
public class GherkinDocument extends Object
* The [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) of a Gherkin document. Cucumber implementations should *not* depend on `GherkinDocument` or any of its children for execution - use [Pickle](#io.cucumber.messages.Pickle) instead. The only consumers of `GherkinDocument` should only be formatters that produce "rich" output, resembling the original Gherkin document.
-
-
Constructor Summary
Constructors Constructor Description GherkinDocument()No args constructor for use in serializationGherkinDocument(String uri, Feature feature, List<Comment> comments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)List<Comment>getComments()All the comments in the Gherkin document (Required)FeaturegetFeature()StringgetUri()* The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directoryinthashCode()voidsetComments(List<Comment> comments)All the comments in the Gherkin document (Required)voidsetFeature(Feature feature)voidsetUri(String uri)* The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directoryStringtoString()
-
-
-
Method Detail
-
getUri
public String getUri()
* The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory
-
setUri
public void setUri(String uri)
* The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier) of the source, typically a file path relative to the root directory
-
getFeature
public Feature getFeature()
-
setFeature
public void setFeature(Feature feature)
-
setComments
public void setComments(List<Comment> comments)
All the comments in the Gherkin document (Required)
-
-