Package io.cucumber.messages.types
Enum StepKeywordType
- java.lang.Object
-
- java.lang.Enum<StepKeywordType>
-
- io.cucumber.messages.types.StepKeywordType
-
- All Implemented Interfaces:
Serializable,Comparable<StepKeywordType>
public enum StepKeywordType extends Enum<StepKeywordType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIONCONJUNCTIONCONTEXTOUTCOMEUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StepKeywordTypefromValue(String value)StringtoString()Stringvalue()static StepKeywordTypevalueOf(String name)Returns the enum constant of this type with the specified name.static StepKeywordType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final StepKeywordType UNKNOWN
-
CONTEXT
public static final StepKeywordType CONTEXT
-
ACTION
public static final StepKeywordType ACTION
-
OUTCOME
public static final StepKeywordType OUTCOME
-
CONJUNCTION
public static final StepKeywordType CONJUNCTION
-
-
Method Detail
-
values
public static StepKeywordType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StepKeywordType c : StepKeywordType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StepKeywordType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<StepKeywordType>
-
value
public String value()
-
fromValue
public static StepKeywordType fromValue(String value)
-
-