Skip to content

TFPBooleanResultOperation

Internally used class for operations that result in boolean values

Declaration

Source position: fpexprpars.pp line 219

type

  TFPBooleanResultOperation = class(TFPBinaryOperation)
  public
    procedure Check;
    function NodeType : TResultType;
  end;

Description

The TFPBooleanResultOperation class serves as the base class for binary operations that produce boolean results but may accept non-boolean operands. It extends TFPBinaryOperation to provide the framework for comparison and relational operations.

Unlike TFPBooleanOperation which requires boolean operands, this class allows various operand types while ensuring the result is always boolean. This makes it suitable for comparison operations like equality, less than, greater than, etc.

The class provides the infrastructure for operations that compare values of compatible types and return boolean results indicating the relationship between the operands.

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.

Methods

Member Visibility Description
Check public Validate the boolean result operation
NodeType public Get the result type for boolean operations
See all Methods