Package io.cucumber.messages.types
Class Snippet
java.lang.Object
io.cucumber.messages.types.Snippet
Represents the Snippet message in Cucumber's message protocol
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Snippet
-
-
Method Details
-
getLanguage
The programming language of the code.This must be formatted as an all lowercase identifier such that syntax highlighters like [Prism](https://prismjs.com/#supported-languages) or [Highlight.js](https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md) can recognize it. For example: `cpp`, `cs`, `go`, `java`, `javascript`, `php`, `python`, `ruby`, `scala`.
-
getCode
A snippet of code -
equals
-
hashCode
public int hashCode() -
toString
-