Package dev.cel.common.ast
Class CelExpr.CelCreateList
- java.lang.Object
-
- dev.cel.common.ast.CelExpr.CelCreateList
-
- Enclosing class:
- CelExpr
@Immutable public abstract static class CelExpr.CelCreateList extends java.lang.ObjectA list creation expression.Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g. `dyn([1, 'hello', 2.0])`
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelExpr.CelCreateList.BuilderBuilder for CelCreateList.
-
Constructor Summary
Constructors Constructor Description CelCreateList()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.google.common.collect.ImmutableList<CelExpr>elements()The elements part of the liststatic CelExpr.CelCreateList.BuildernewBuilder()abstract com.google.common.collect.ImmutableList<java.lang.Integer>optionalIndices()The indices within the elements list which are marked as optional elements.CelExpr.CelCreateList.BuildertoBuilder()
-
-
-
Method Detail
-
elements
public abstract com.google.common.collect.ImmutableList<CelExpr> elements()
The elements part of the list
-
optionalIndices
public abstract com.google.common.collect.ImmutableList<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.
-
toBuilder
public CelExpr.CelCreateList.Builder toBuilder()
-
newBuilder
public static CelExpr.CelCreateList.Builder newBuilder()
-
-