Package dev.cel.runtime
Enum CelStandardFunctions.StandardFunction
- java.lang.Object
-
- java.lang.Enum<CelStandardFunctions.StandardFunction>
-
- dev.cel.runtime.CelStandardFunctions.StandardFunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CelStandardFunctions.StandardFunction>
- Enclosing class:
- CelStandardFunctions
public static enum CelStandardFunctions.StandardFunction extends java.lang.Enum<CelStandardFunctions.StandardFunction>
Enumeration of Standard Function bindings.Note: The conditional, logical_or, logical_and, and type functions are currently special-cased, and does not appear in this enum.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CelStandardFunctions.StandardFunctionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CelStandardFunctions.StandardFunction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOGICAL_NOT
public static final CelStandardFunctions.StandardFunction LOGICAL_NOT
-
IN
public static final CelStandardFunctions.StandardFunction IN
-
NOT_STRICTLY_FALSE
public static final CelStandardFunctions.StandardFunction NOT_STRICTLY_FALSE
-
EQUALS
public static final CelStandardFunctions.StandardFunction EQUALS
-
NOT_EQUALS
public static final CelStandardFunctions.StandardFunction NOT_EQUALS
-
BOOL
public static final CelStandardFunctions.StandardFunction BOOL
-
ADD
public static final CelStandardFunctions.StandardFunction ADD
-
SUBTRACT
public static final CelStandardFunctions.StandardFunction SUBTRACT
-
MULTIPLY
public static final CelStandardFunctions.StandardFunction MULTIPLY
-
DIVIDE
public static final CelStandardFunctions.StandardFunction DIVIDE
-
MODULO
public static final CelStandardFunctions.StandardFunction MODULO
-
NEGATE
public static final CelStandardFunctions.StandardFunction NEGATE
-
INDEX
public static final CelStandardFunctions.StandardFunction INDEX
-
SIZE
public static final CelStandardFunctions.StandardFunction SIZE
-
INT
public static final CelStandardFunctions.StandardFunction INT
-
UINT
public static final CelStandardFunctions.StandardFunction UINT
-
DOUBLE
public static final CelStandardFunctions.StandardFunction DOUBLE
-
STRING
public static final CelStandardFunctions.StandardFunction STRING
-
BYTES
public static final CelStandardFunctions.StandardFunction BYTES
-
DURATION
public static final CelStandardFunctions.StandardFunction DURATION
-
TIMESTAMP
public static final CelStandardFunctions.StandardFunction TIMESTAMP
-
DYN
public static final CelStandardFunctions.StandardFunction DYN
-
MATCHES
public static final CelStandardFunctions.StandardFunction MATCHES
-
CONTAINS
public static final CelStandardFunctions.StandardFunction CONTAINS
-
ENDS_WITH
public static final CelStandardFunctions.StandardFunction ENDS_WITH
-
STARTS_WITH
public static final CelStandardFunctions.StandardFunction STARTS_WITH
-
GET_FULL_YEAR
public static final CelStandardFunctions.StandardFunction GET_FULL_YEAR
-
GET_MONTH
public static final CelStandardFunctions.StandardFunction GET_MONTH
-
GET_DAY_OF_YEAR
public static final CelStandardFunctions.StandardFunction GET_DAY_OF_YEAR
-
GET_DAY_OF_MONTH
public static final CelStandardFunctions.StandardFunction GET_DAY_OF_MONTH
-
GET_DATE
public static final CelStandardFunctions.StandardFunction GET_DATE
-
GET_DAY_OF_WEEK
public static final CelStandardFunctions.StandardFunction GET_DAY_OF_WEEK
-
GET_HOURS
public static final CelStandardFunctions.StandardFunction GET_HOURS
-
GET_MINUTES
public static final CelStandardFunctions.StandardFunction GET_MINUTES
-
GET_SECONDS
public static final CelStandardFunctions.StandardFunction GET_SECONDS
-
GET_MILLISECONDS
public static final CelStandardFunctions.StandardFunction GET_MILLISECONDS
-
LESS
public static final CelStandardFunctions.StandardFunction LESS
-
LESS_EQUALS
public static final CelStandardFunctions.StandardFunction LESS_EQUALS
-
GREATER
public static final CelStandardFunctions.StandardFunction GREATER
-
GREATER_EQUALS
public static final CelStandardFunctions.StandardFunction GREATER_EQUALS
-
-
Method Detail
-
values
public static CelStandardFunctions.StandardFunction[] 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 (CelStandardFunctions.StandardFunction c : CelStandardFunctions.StandardFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CelStandardFunctions.StandardFunction 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
-
-