Expr
Expr describes a CEL expression.
Extended by
Section titled “Extended by”Methods
Section titled “Methods”asCall()
Section titled “asCall()”asCall():
CallExpr|undefined
AsCall adapts the expr into a CallExpr.
Returns
Section titled “Returns”CallExpr | undefined
asComprehension()
Section titled “asComprehension()”asComprehension():
ComprehensionExpr|undefined
AsComprehension adapts the expr into a ComprehensionExpr.
Returns
Section titled “Returns”ComprehensionExpr | undefined
asIdent()
Section titled “asIdent()”asIdent():
string|undefined
AsIdent adapts the expr into an identifier string.
Returns
Section titled “Returns”string | undefined
asList()
Section titled “asList()”asList():
ListExpr|undefined
AsList adapts the expr into a ListExpr.
Returns
Section titled “Returns”ListExpr | undefined
asLiteral()
Section titled “asLiteral()”asLiteral():
ConstantValue|undefined
AsLiteral adapts the expr into a literal constant value.
Returns
Section titled “Returns”ConstantValue | undefined
asMap()
Section titled “asMap()”asMap():
MapExpr|undefined
AsMap adapts the expr into a MapExpr.
Returns
Section titled “Returns”MapExpr | undefined
asSelect()
Section titled “asSelect()”asSelect():
SelectExpr|undefined
AsSelect adapts the expr into a SelectExpr.
Returns
Section titled “Returns”SelectExpr | undefined
asStruct()
Section titled “asStruct()”asStruct():
StructExpr|undefined
AsStruct adapts the expr into a StructExpr.
Returns
Section titled “Returns”StructExpr | undefined
children()
Section titled “children()”children():
Expr[]
Children returns the direct child expressions.
Returns
Section titled “Returns”Expr[]
id():
number
Id of the expression as it appears in the AST.
Returns
Section titled “Returns”number
kind()
Section titled “kind()”kind():
ExprKind
Kind of the expression node. See ExprKind for the valid enum values.
Returns
Section titled “Returns”renumberIds()
Section titled “renumberIds()”renumberIds(
generator):void
RenumberIds performs an in-place update of the expression and all of its descendant numeric ids.
Parameters
Section titled “Parameters”generator
Section titled “generator”Returns
Section titled “Returns”void
setKindCase()
Section titled “setKindCase()”setKindCase(
other?):void
SetKindCase replaces the contents of the current expression with the contents of the other.
This method should only be used during AST rewrites using temporary Expr values.
Parameters
Section titled “Parameters”other?
Section titled “other?”Expr
Returns
Section titled “Returns”void
toProto()
Section titled “toProto()”toProto():
Expr
ToProto converts the expression to protobuf form.
Returns
Section titled “Returns”Expr