Package com.ezylang.evalex.data
Enum EvaluationValue.DataType
- java.lang.Object
-
- java.lang.Enum<EvaluationValue.DataType>
-
- com.ezylang.evalex.data.EvaluationValue.DataType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EvaluationValue.DataType>
- Enclosing class:
- EvaluationValue
public static enum EvaluationValue.DataType extends java.lang.Enum<EvaluationValue.DataType>
The supported data types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYA list evaluation values.BINARYRaw (undefined) type, stored as anObject.BOOLEANA boolean, stored asBoolean.DATE_TIMEA date time value, stored asInstant.DURATIONA period value, stored asDuration.EXPRESSION_NODEUsed for lazy parameter evaluation, stored as anASTNode, which can be evaluated on demand.NULLA null valueNUMBERAny number, stored asBigDecimal.STRINGA string of characters, stored asString.STRUCTUREA structure with pairs of name/value members.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EvaluationValue.DataTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EvaluationValue.DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final EvaluationValue.DataType STRING
A string of characters, stored asString.
-
NUMBER
public static final EvaluationValue.DataType NUMBER
Any number, stored asBigDecimal.
-
BOOLEAN
public static final EvaluationValue.DataType BOOLEAN
A boolean, stored asBoolean.
-
DATE_TIME
public static final EvaluationValue.DataType DATE_TIME
A date time value, stored asInstant.
-
DURATION
public static final EvaluationValue.DataType DURATION
A period value, stored asDuration.
-
ARRAY
public static final EvaluationValue.DataType ARRAY
A list evaluation values. Stored asList.
-
STRUCTURE
public static final EvaluationValue.DataType STRUCTURE
A structure with pairs of name/value members. Name is a string and the value is aEvaluationValue. Stored as aMap.
-
EXPRESSION_NODE
public static final EvaluationValue.DataType EXPRESSION_NODE
Used for lazy parameter evaluation, stored as anASTNode, which can be evaluated on demand.
-
NULL
public static final EvaluationValue.DataType NULL
A null value
-
BINARY
public static final EvaluationValue.DataType BINARY
Raw (undefined) type, stored as anObject.
-
-
Method Detail
-
values
public static EvaluationValue.DataType[] 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 (EvaluationValue.DataType c : EvaluationValue.DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EvaluationValue.DataType 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
-
-