Declaration¶
Source position: fpexprpars.pp line 154
type
TFPBooleanOperation = class(TFPBinaryOperation)
public
procedure Check;
function NodeType : TResultType;
end;
Inheritance¶
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.
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Check | public | Validate the boolean operation for correctness |
| NodeType | public | Get the result type for boolean operations |
See also¶
| Name | Description |
|---|---|
| TFPExprNode | Class for representing nodes in expression trees |