Package io.cucumber.java8
Class AbstractJavaSnippet
java.lang.Object
io.cucumber.java8.AbstractJavaSnippet
- All Implemented Interfaces:
Snippet
- Direct Known Subclasses:
Java8Snippet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringConstructs a string representation of the arguments a step definition should accept.final StringescapePattern(String pattern) Escape representation of the pattern, if escaping is necessary.private StringgetArgType(Type argType) final StringReturns a hint about alternative ways to declare a table argument
-
Constructor Details
-
AbstractJavaSnippet
AbstractJavaSnippet()
-
-
Method Details
-
tableHint
Description copied from interface:SnippetReturns a hint about alternative ways to declare a table argument -
arguments
Description copied from interface:SnippetConstructs a string representation of the arguments a step definition should accept. The arguments are provided a map of (suggested) names and types. The arguments are ordered by their position. -
getArgType
-
escapePattern
Description copied from interface:SnippetEscape representation of the pattern, if escaping is necessary.- Specified by:
escapePatternin interfaceSnippet- Parameters:
pattern- the computed pattern that will match an undefined step- Returns:
- an escaped representation of the pattern, if escaping is necessary.
-