Package dev.cel.common.ast
Interface Expression.Map.Entry<T extends Expression>
-
- All Known Implementing Classes:
CelExpr.CelMap.Entry
- Enclosing interface:
- Expression.Map<E extends Expression.Map.Entry<?>>
public static interface Expression.Map.Entry<T extends Expression>
Represents an entry of the map.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
id()
Required.T
key()
Required.boolean
optionalEntry()
T
value()
Required.
-
-
-
Method Detail
-
id
long id()
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
-
key
T key()
Required. The key.
-
value
T value()
Required. The value assigned to the key.If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
-
optionalEntry
boolean optionalEntry()
-
-