Skip to content

TFPConvertNode

Internally used class for type conversion operations

Declaration

Source position: fpexprpars.pp line 380

type

  TFPConvertNode = class(TFPUnaryOperator)
    function AsString : AnsiString;
  end;

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.

Methods

Member Visibility Description
AsString default Get string representation of conversion operation
See all Methods

See also

Name Description
TFPExprNode Class for representing nodes in expression trees