Sign in Join
FPDoc Onlineexperiment

TFPGreaterThanOperation class

In unit fpExprPars

Internally used class for greater-than comparison operations

Declaration

pascal
TFPGreaterThanOperation = class(TFPOrderingOperation)

Inheritance

  1. TFPGreaterThanOperation
  2. TFPOrderingOperation
  3. TFPBooleanResultOperation
  4. TFPBinaryOperation
  5. TFPExprNode
  6. TObject

Descends from it: TFPLessThanEqualOperation

Description

The TFPGreaterThanOperation class implements the greater-than comparison operation (>) between two operands of compatible types. It extends TFPOrderingOperation to provide greater-than-specific comparison logic.

The operation compares two values and returns True if the left operand is greater than the right operand, False otherwise. It handles different data types appropriately, using numeric comparison for numbers, lexicographic comparison for strings, and chronological comparison for date/time values.

Type conversion is performed when necessary to compare values of different but compatible types, ensuring proper ordering across numeric types.

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

Methods

GetNodeValueprotected
AsStringpublicGet string representation of greater-than operation

Inherited

From TFPOrderingOperation (1)

Check

From TFPBooleanResultOperation (1)

NodeType

From TFPBinaryOperation (8)

CheckSameNodeTypes Create Destroy HasAggregate InitAggregate left Right UpdateAggregate

From TFPExprNode (3)

CheckNodeType 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.