Sign in Join
FPDoc Onlineexperiment

TFPBooleanResultOperation class

In unit fpExprPars

Internally used class for operations that result in boolean values

Declaration

pascal
TFPBooleanResultOperation = class(TFPBinaryOperation)

Inheritance

  1. TFPBooleanResultOperation
  2. TFPBinaryOperation
  3. TFPExprNode
  4. TObject

Descends from it: TFPEqualOperation TFPOrderingOperation

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

CheckpublicValidate the boolean result operation
NodeTypepublicGet the result type for boolean operations

Inherited

From TFPBinaryOperation (8)

CheckSameNodeTypes Create Destroy HasAggregate InitAggregate left Right UpdateAggregate

From TFPExprNode (5)

AsString CheckNodeType GetNodeValue IsAggregate NodeValue

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.