Package dev.cel.common.ast
Enum CelExprVisitor.ComprehensionArg
- java.lang.Object
-
- java.lang.Enum<CelExprVisitor.ComprehensionArg>
-
- dev.cel.common.ast.CelExprVisitor.ComprehensionArg
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CelExprVisitor.ComprehensionArg>
- Enclosing class:
- CelExprVisitor
public static enum CelExprVisitor.ComprehensionArg extends java.lang.Enum<CelExprVisitor.ComprehensionArg>
ComprehensionArg specifies the arg ordinal values for comprehension arguments, where the ordinal of the enum maps to the ordinal of the argument in the comprehension expression.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCU_INITITER_RANGELOOP_CONDIITONLOOP_STEPRESULT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CelExprVisitor.ComprehensionArgvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CelExprVisitor.ComprehensionArg[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ITER_RANGE
public static final CelExprVisitor.ComprehensionArg ITER_RANGE
-
ACCU_INIT
public static final CelExprVisitor.ComprehensionArg ACCU_INIT
-
LOOP_CONDIITON
public static final CelExprVisitor.ComprehensionArg LOOP_CONDIITON
-
LOOP_STEP
public static final CelExprVisitor.ComprehensionArg LOOP_STEP
-
RESULT
public static final CelExprVisitor.ComprehensionArg RESULT
-
-
Method Detail
-
values
public static CelExprVisitor.ComprehensionArg[] 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 (CelExprVisitor.ComprehensionArg c : CelExprVisitor.ComprehensionArg.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CelExprVisitor.ComprehensionArg 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
-
-