Package dev.cel.common.ast
Class CelExpr.CelStruct.Entry
- java.lang.Object
-
- dev.cel.common.ast.CelExpr.CelStruct.Entry
-
- All Implemented Interfaces:
Expression.Struct.Entry<CelExpr>
- Enclosing class:
- CelExpr.CelStruct
@Immutable public abstract static class CelExpr.CelStruct.Entry extends java.lang.Object implements Expression.Struct.Entry<CelExpr>
Represents an entry of the struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelExpr.CelStruct.Entry.BuilderBuilder for CelStruct.Entry.
-
Constructor Summary
Constructors Constructor Description Entry()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringfieldKey()Entry key kind.abstract longid()Required.static CelExpr.CelStruct.Entry.BuildernewBuilder()abstract booleanoptionalEntry()Whether the key-value pair is optional.abstract CelExpr.CelStruct.Entry.BuildertoBuilder()abstract CelExprvalue()Required.
-
-
-
Method Detail
-
id
public abstract long id()
Description copied from interface:Expression.Struct.EntryRequired. 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.- Specified by:
idin interfaceExpression.Struct.Entry<CelExpr>
-
fieldKey
public abstract java.lang.String fieldKey()
Description copied from interface:Expression.Struct.EntryEntry key kind.- Specified by:
fieldKeyin interfaceExpression.Struct.Entry<CelExpr>
-
value
public abstract CelExpr value()
Description copied from interface:Expression.Struct.EntryRequired. 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.
- Specified by:
valuein interfaceExpression.Struct.Entry<CelExpr>
-
optionalEntry
public abstract boolean optionalEntry()
Description copied from interface:Expression.Struct.EntryWhether the key-value pair is optional.- Specified by:
optionalEntryin interfaceExpression.Struct.Entry<CelExpr>
-
toBuilder
public abstract CelExpr.CelStruct.Entry.Builder toBuilder()
-
newBuilder
public static CelExpr.CelStruct.Entry.Builder newBuilder()
-
-