Package dev.cel.common
Enum CelSource.Extension.Component
- java.lang.Object
-
- java.lang.Enum<CelSource.Extension.Component>
-
- dev.cel.common.CelSource.Extension.Component
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CelSource.Extension.Component>
- Enclosing class:
- CelSource.Extension
public static enum CelSource.Extension.Component extends java.lang.Enum<CelSource.Extension.Component>
CEL component specifier.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPONENT_PARSER
Parser.COMPONENT_RUNTIME
Runtime.COMPONENT_TYPE_CHECKER
Type checker.COMPONENT_UNSPECIFIED
Unspecified, default.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CelSource.Extension.Component
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CelSource.Extension.Component[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPONENT_UNSPECIFIED
public static final CelSource.Extension.Component COMPONENT_UNSPECIFIED
Unspecified, default.
-
COMPONENT_PARSER
public static final CelSource.Extension.Component COMPONENT_PARSER
Parser. Converts a CEL string to an AST.
-
COMPONENT_TYPE_CHECKER
public static final CelSource.Extension.Component COMPONENT_TYPE_CHECKER
Type checker. Checks that references in an AST are defined and types agree.
-
COMPONENT_RUNTIME
public static final CelSource.Extension.Component COMPONENT_RUNTIME
Runtime. Evaluates a parsed and optionally checked CEL AST against a context.
-
-
Method Detail
-
values
public static CelSource.Extension.Component[] 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 (CelSource.Extension.Component c : CelSource.Extension.Component.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CelSource.Extension.Component 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
-
-