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

TFPBooleanOperation

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

Internally used class for boolean operations in expressions

Declaration

Source position: fpexprpars.pp line 154

type TFPBooleanOperation = class(TFPBinaryOperation)

public

  procedure Check; override;

  

Validate the boolean operation for correctness

  function NodeType; override;

  

Get the result type for boolean operations

end;

Inheritance

TFPBooleanOperation

  

Internally used class for boolean operations in expressions

|

TFPBinaryOperation

  

Internally used class for binary operations with left and right operands

|

TFPExprNode

  

Class for representing nodes in expression trees

|

TObject

Description

TFPBooleanOperation is the base class for binary operations that work with boolean operands and produce boolean results. It extends TFPBinaryOperation to provide boolean-specific functionality and validation.

The class ensures that both operands are boolean expressions and provides the framework for logical operations such as AND, OR, and XOR. It handles type validation to ensure that only boolean values participate in logical operations.

Derived classes implement specific boolean operations while leveraging the common boolean operation infrastructure for validation and type management.

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