java.lang.Object
io.cucumber.gherkin.GherkinDialect
Holds all localized keywords for a single language.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final Comparator<String> private final Stringprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionGherkinDialect(String language, String name, String nativeName, List<String> featureKeywords, List<String> ruleKeywords, List<String> scenarioKeywords, List<String> scenarioOutlineKeywords, List<String> backgroundKeywords, List<String> examplesKeywords, List<String> givenKeywords, List<String> whenKeywords, List<String> thenKeywords, List<String> andKeywords, List<String> butKeywords) -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddStepKeywordsTypes(Map<String, Set<io.cucumber.messages.types.StepKeywordType>> accumulator, io.cucumber.messages.types.StepKeywordType type, List<String> keywords) aggregateKeywordTypes(List<String> givenKeywords, List<String> whenKeywords, List<String> thenKeywords, List<String> andKeywords, List<String> butKeywords) distinctKeywords(List<String>... keywords) getName()@Nullable List<io.cucumber.messages.types.StepKeywordType> getStepKeywordTypes(String keyword) Deprecated.Set<io.cucumber.messages.types.StepKeywordType> getStepKeywordTypesSet(String keyword) Returns theStepKeywordTypesfor a given keyword
-
Field Details
-
LONGEST_TO_SHORTEST_COMPARATOR
-
language
-
name
-
nativeName
-
featureKeywords
-
ruleKeywords
-
scenarioKeywords
-
scenarioOutlineKeywords
-
backgroundKeywords
-
examplesKeywords
-
givenKeywords
-
whenKeywords
-
thenKeywords
-
andKeywords
-
butKeywords
-
stepKeywords
-
stepKeywordsTypes
-
-
Constructor Details
-
GherkinDialect
GherkinDialect(String language, String name, String nativeName, List<String> featureKeywords, List<String> ruleKeywords, List<String> scenarioKeywords, List<String> scenarioOutlineKeywords, List<String> backgroundKeywords, List<String> examplesKeywords, List<String> givenKeywords, List<String> whenKeywords, List<String> thenKeywords, List<String> andKeywords, List<String> butKeywords)
-
-
Method Details
-
distinctKeywords
-
aggregateKeywordTypes
-
addStepKeywordsTypes
-
getFeatureKeywords
-
getName
-
getNativeName
-
getRuleKeywords
-
getScenarioKeywords
-
getScenarioOutlineKeywords
-
getStepKeywords
-
getStepKeywordTypes
@Deprecated public @Nullable List<io.cucumber.messages.types.StepKeywordType> getStepKeywordTypes(String keyword) Deprecated.use {getStepKeywordTypesSet(String)} instead.Returns theStepKeywordTypesfor a given keyword- Parameters:
keyword- to get the keyword type for- Returns:
- the keywords type
-
getStepKeywordTypesSet
Returns theStepKeywordTypesfor a given keyword- Parameters:
keyword- to get the keyword type for- Returns:
- the keywords type
-
getBackgroundKeywords
-
getExamplesKeywords
-
getGivenKeywords
-
getWhenKeywords
-
getThenKeywords
-
getAndKeywords
-
getButKeywords
-
getLanguage
-
getStepKeywordTypesSet(String)} instead.