Package dev.cel.common.ast
Interface Expression.Select<E extends Expression>
-
- All Known Implementing Classes:
CelExpr.CelSelect
- Enclosing interface:
- Expression
public static interface Expression.Select<E extends Expression>
A field selection expression. e.g. `request.auth`.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
field()
Required.E
operand()
Required.boolean
testOnly()
Whether the select is to be interpreted as a field presence test.
-
-
-
Method Detail
-
operand
E 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
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
boolean testOnly()
Whether the select is to be interpreted as a field presence test.This results from the macro `has(request.auth)`.
-
-