Package dev.cel.common.ast
Class CelExpr.CelSelect
- java.lang.Object
-
- dev.cel.common.ast.CelExpr.CelSelect
-
- Enclosing class:
- CelExpr
@Immutable public abstract static class CelExpr.CelSelect extends java.lang.ObjectA field selection expression. e.g. `request.auth`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelExpr.CelSelect.BuilderBuilder for CelSelect.
-
Constructor Summary
Constructors Constructor Description CelSelect()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Stringfield()Required.static CelExpr.CelSelect.BuildernewBuilder()abstract CelExproperand()Required.abstract booleantestOnly()Whether the select is to be interpreted as a field presence test.abstract CelExpr.CelSelect.BuildertoBuilder()
-
-
-
Method Detail
-
operand
public abstract CelExpr operand()
Required. The target of the selection expression.For example, in the select expression `request.auth`, the `request` portion of the expression is the `operand`.
-
field
public abstract java.lang.String field()
Required. The name of the field to select.For example, in the select expression `request.auth`, the `auth` portion of the expression would be the `field`.
-
testOnly
public abstract boolean testOnly()
Whether the select is to be interpreted as a field presence test.This results from the macro `has(request.auth)`.
-
toBuilder
public abstract CelExpr.CelSelect.Builder toBuilder()
-
newBuilder
public static CelExpr.CelSelect.Builder newBuilder()
-
-