Interface Expression

All Known Implementing Classes:
Binary, Call, Comprehension, Conditional, Identifier, Index, ListExpression, Literal, MapExpression, Select, Struct, Unary

Base class for all CEL expression nodes in the Abstract Syntax Tree.

Uses the Visitor pattern to enable different operations on expressions such as evaluation, type checking, or code generation.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Visitor interface for traversing and operating on CEL expression nodes.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    Accepts a visitor to perform operations on this expression node.
  • Method Details

    • accept

      <T> T accept(Expression.Visitor<T> visitor)
      Accepts a visitor to perform operations on this expression node.

      Invokes the appropriate visit method on the provided visitor, dispatching the visit operation to the visitor implementation that corresponds to the type of this expression node.

      Type Parameters:
      T - the return type of the visitor's visit operations
      Parameters:
      visitor - the visitor that will operate on this expression node
      Returns:
      the result of the visitor's visit operation