Package dev.cel.checker
Enum ExprVisitor.ComprehensionArg
- java.lang.Object
-
- java.lang.Enum<ExprVisitor.ComprehensionArg>
-
- dev.cel.checker.ExprVisitor.ComprehensionArg
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ExprVisitor.ComprehensionArg>
- Enclosing class:
- ExprVisitor
public static enum ExprVisitor.ComprehensionArg extends java.lang.Enum<ExprVisitor.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 ExprVisitor.ComprehensionArgvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ExprVisitor.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 ExprVisitor.ComprehensionArg ITER_RANGE
-
ACCU_INIT
public static final ExprVisitor.ComprehensionArg ACCU_INIT
-
LOOP_CONDIITON
public static final ExprVisitor.ComprehensionArg LOOP_CONDIITON
-
LOOP_STEP
public static final ExprVisitor.ComprehensionArg LOOP_STEP
-
RESULT
public static final ExprVisitor.ComprehensionArg RESULT
-
-
Method Detail
-
values
public static ExprVisitor.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 (ExprVisitor.ComprehensionArg c : ExprVisitor.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 ExprVisitor.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
-
-