Package io.cucumber.core.snippets
Class SnippetGenerator
java.lang.Object
io.cucumber.core.snippets.SnippetGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ArgumentPatternprivate final io.cucumber.cucumberexpressions.CucumberExpressionGeneratorprivate final Stringprivate static final Stringprivate final Snippet -
Constructor Summary
ConstructorsConstructorDescriptionSnippetGenerator(String pickleLanguage, Snippet snippet, io.cucumber.cucumberexpressions.ParameterTypeRegistry parameterTypeRegistry) -
Method Summary
Modifier and TypeMethodDescriptionarguments(Step step, List<String> parameterNames, List<io.cucumber.cucumberexpressions.ParameterType<?>> parameterTypes) private static Stringcapitalize(String str) private StringcreateSnippet(Step step, IdentifierGenerator functionNameGenerator, IdentifierGenerator parameterNameGenerator, io.cucumber.cucumberexpressions.GeneratedExpression expression) private StringfunctionName(String sentence, IdentifierGenerator functionNameGenerator) private static IntStreamprivate static StringgetNormalizedEmojiKeyWord(String keyword) private static StringgetNormalizedKeyWord(@Nullable String pickleLanguage, String keyword) private static StringgetNormalizedKeyWord(String keyword) getSnippet(Step step, SnippetType snippetType) (package private) static Stringprivate StringparameterName(String name, List<String> parameterNames) private StringtoParameterNames(io.cucumber.cucumberexpressions.GeneratedExpression expression, IdentifierGenerator parameterNameGenerator)
-
Field Details
-
DEFAULT_ARGUMENT_PATTERN
-
REGEXP_HINT
- See Also:
-
snippet
-
generator
private final io.cucumber.cucumberexpressions.CucumberExpressionGenerator generator -
pickleLanguage
-
-
Constructor Details
-
SnippetGenerator
-
-
Method Details
-
getLanguage
-
getSnippet
-
createSnippet
private String createSnippet(Step step, IdentifierGenerator functionNameGenerator, IdentifierGenerator parameterNameGenerator, io.cucumber.cucumberexpressions.GeneratedExpression expression) -
toParameterNames
private List<String> toParameterNames(io.cucumber.cucumberexpressions.GeneratedExpression expression, IdentifierGenerator parameterNameGenerator) -
capitalize
-
getNormalizedKeyWord
-
getNormalizedEmojiKeyWord
-
getCodePoints
-
getNormalizedKeyWord
-
normalize
-
functionName
-
arguments
-
tableHint
-
parameterName
-