Package dev.cel.common.ast
Interface Expression.List<E extends Expression>
-
- All Known Implementing Classes:
CelExpr.CelList
- Enclosing interface:
- Expression
public static interface Expression.List<E extends Expression>
A list creation expression.Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g. `dyn([1, 'hello', 2.0])`
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<E>
elements()
The elements part of the listjava.util.List<java.lang.Integer>
optionalIndices()
The indices within the elements list which are marked as optional elements.
-
-
-
Method Detail
-
elements
java.util.List<E> elements()
The elements part of the list
-
optionalIndices
java.util.List<java.lang.Integer> optionalIndices()
The indices within the elements list which are marked as optional elements.When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
-
-