Enum SmithyPattern.Segment.Type
- java.lang.Object
-
- java.lang.Enum<SmithyPattern.Segment.Type>
-
- software.amazon.smithy.model.pattern.SmithyPattern.Segment.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SmithyPattern.Segment.Type>
- Enclosing class:
- SmithyPattern.Segment
public static enum SmithyPattern.Segment.Type extends java.lang.Enum<SmithyPattern.Segment.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GREEDY_LABEL
LABEL
LITERAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SmithyPattern.Segment.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SmithyPattern.Segment.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LITERAL
public static final SmithyPattern.Segment.Type LITERAL
-
LABEL
public static final SmithyPattern.Segment.Type LABEL
-
GREEDY_LABEL
public static final SmithyPattern.Segment.Type GREEDY_LABEL
-
-
Method Detail
-
values
public static SmithyPattern.Segment.Type[] 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 (SmithyPattern.Segment.Type c : SmithyPattern.Segment.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SmithyPattern.Segment.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-