Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TExprBuiltInManager

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class for managing built-in functions and variables in expressions

Declaration

Source position: fpexprpars.pp line 804

type TExprBuiltInManager = class(TComponent)

public

  constructor Create(); override;

  

Create built-in manager instance

  destructor Destroy; override;

  

Destroy built-in manager instance

  function IndexOfIdentifier();

  

Find index of built-in identifier

  function FindIdentifier();

  

Find built-in identifier by name

  function IdentifierByName();

  

Get identifier by name with exception on not found

  function AddVariable();

  

Add variable to built-in collection

  function AddBooleanVariable();

  

Add boolean variable to built-in collection

  function AddIntegerVariable();

  

Add integer variable to built-in collection

  function AddFloatVariable();

  

Add float variable to built-in collection

  function AddCurrencyVariable();

  

Add currency variable to built-in collection

  function AddStringVariable();

  

Add string variable to built-in collection

  function AddDateTimeVariable();

  

Add datetime variable to built-in collection

  function AddFunction();

  

Add function to built-in collection

  procedure Delete();

  function Remove();

  property IdentifierCount: Integer; [r]

  

Number of built-in identifiers

  property Identifiers []: TFPBuiltInExprIdentifierDef; [r]

  

Array access to built-in identifiers

end;

Inheritance

TExprBuiltInManager

  

Class for managing built-in functions and variables in expressions

|

TComponent

|

TPersistent,IUnknown,IInterfaceComponentReference

|

TObject,IFPObserved

Description

The TExprBuiltInManager class serves as a manager for built-in functions and predefined variables that can be used within expressions. It provides a centralized registry where built-in mathematical functions, string functions, date/time functions, and system variables are registered and made available to the expression parser.

The manager handles the registration, lookup, and instantiation of built-in functions when they are encountered during expression parsing. It also maintains predefined variables such as system constants that can be referenced in expressions.

The TExprBuiltInManager class allows for extensibility by enabling the registration of custom built-in functions and variables that should be available across all expression evaluations.

See also

TFPExpressionParser

  

Class for parsing and evaluating mathematical expressions


Documentation generated on: Dec 15 2025