Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TAggregateExpr

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Internally used Base class for aggregate expressions

Declaration

Source position: fpexprpars.pp line 646

type TAggregateExpr = class(TFPExprFunction)

public

  class function IsAggregate; override;

  

Check if expression is an aggregate

  procedure GetNodeValue(); override;

  

Get the aggregate expression value

end;

Inheritance

TAggregateExpr

  

Internally used Base class for aggregate expressions

|

TFPExprFunction

  

Internally used class for representing function calls in expression trees

|

TFPExprIdentifierNode

  

Internally used class for identifier nodes in expression trees

|

TFPExprNode

  

Class for representing nodes in expression trees

|

TObject

Description

This abstract base class provides the foundation for all aggregate expression classes in the expression parser. Aggregate expressions perform calculations over multiple values, such as sums, averages, counts, minimums, and maximums.

The class extends TFPExprNode to provide aggregate-specific functionality including initialization and update methods that are called as values are processed. Derived classes must implement the specific aggregation logic for their particular operation.

Aggregate expressions typically maintain internal state that accumulates as values are processed, making them stateful unlike regular expression nodes. The aggregation process involves initialization, iterative updates, and final value calculation.

This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.

See also

TFPExprNode

  

Class for representing nodes in expression trees


Documentation generated on: Dec 15 2025