Sign in Join
FPDoc Onlineexperiment

TFPConvertNode class

In unit fpExprPars

Internally used class for type conversion operations

Declaration

pascal
TFPConvertNode = class(TFPUnaryOperator)

Inheritance

  1. TFPConvertNode
  2. TFPUnaryOperator
  3. TFPExprNode
  4. TObject

Descends from it: TCurrencyToDateTimeNode TCurrencyToFloatNode TFloatToCurrencyNode TFloatToDateTimeNode TIntConvertNode

Description

TFPConvertNode is the base class for all type conversion operations in the expression parser. It provides the fundamental infrastructure for converting values between different data types during expression evaluation.

The class extends TFPExprNode to provide conversion-specific functionality that enables automatic type coercion and explicit type casting operations within expressions.

Derived classes implement specific conversion logic for different source and target type combinations, ensuring type safety and proper value transformation during expression evaluation.

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

AsStringGet string representation of conversion operation

Inherited

From TFPUnaryOperator (7)

Check Create Destroy HasAggregate InitAggregate Operand UpdateAggregate

From TFPExprNode (5)

CheckNodeType GetNodeValue IsAggregate NodeType 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.