Package software.amazon.smithy.jmespath
Enum RuntimeType
- java.lang.Object
-
- java.lang.Enum<RuntimeType>
-
- software.amazon.smithy.jmespath.RuntimeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RuntimeType>
public enum RuntimeType extends java.lang.Enum<RuntimeType>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract LiteralExpression
compare(LiteralExpression left, LiteralExpression right, ComparatorType comparator)
java.lang.String
toString()
static RuntimeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RuntimeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final RuntimeType STRING
-
NUMBER
public static final RuntimeType NUMBER
-
BOOLEAN
public static final RuntimeType BOOLEAN
-
NULL
public static final RuntimeType NULL
-
ARRAY
public static final RuntimeType ARRAY
-
OBJECT
public static final RuntimeType OBJECT
-
EXPRESSION
public static final RuntimeType EXPRESSION
-
ANY
public static final RuntimeType ANY
-
-
Method Detail
-
values
public static RuntimeType[] 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 (RuntimeType c : RuntimeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuntimeType 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<RuntimeType>
-
compare
public abstract LiteralExpression compare(LiteralExpression left, LiteralExpression right, ComparatorType comparator)
-
-