Skip to content

Expr

Expr describes a CEL expression.

asCall(): CallExpr | undefined

AsCall adapts the expr into a CallExpr.

CallExpr | undefined


asComprehension(): ComprehensionExpr | undefined

AsComprehension adapts the expr into a ComprehensionExpr.

ComprehensionExpr | undefined


asIdent(): string | undefined

AsIdent adapts the expr into an identifier string.

string | undefined


asList(): ListExpr | undefined

AsList adapts the expr into a ListExpr.

ListExpr | undefined


asLiteral(): ConstantValue | undefined

AsLiteral adapts the expr into a literal constant value.

ConstantValue | undefined


asMap(): MapExpr | undefined

AsMap adapts the expr into a MapExpr.

MapExpr | undefined


asSelect(): SelectExpr | undefined

AsSelect adapts the expr into a SelectExpr.

SelectExpr | undefined


asStruct(): StructExpr | undefined

AsStruct adapts the expr into a StructExpr.

StructExpr | undefined


children(): Expr[]

Children returns the direct child expressions.

Expr[]


id(): number

Id of the expression as it appears in the AST.

number


kind(): ExprKind

Kind of the expression node. See ExprKind for the valid enum values.

ExprKind


renumberIds(generator): void

RenumberIds performs an in-place update of the expression and all of its descendant numeric ids.

IdGenerator

void


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.

Expr

void


toProto(): Expr

ToProto converts the expression to protobuf form.

Expr