Sign in Join
FPDoc Onlineexperiment

TFPFunctionCallBack class

In unit fpExprPars

Internally used class for callback-based function expressions

Declaration

pascal
TFPFunctionCallBack = class(TFPExprFunction)

Inheritance

  1. TFPFunctionCallBack
  2. TFPExprFunction
  3. TFPExprIdentifierNode
  4. TFPExprNode
  5. TObject

Description

The TFPFunctionCallBack class implements function calls that are resolved using callback mechanisms rather than built-in function implementations. It extends the expression framework to allow dynamic function resolution through user-defined callback procedures.

The callback function mechanism enables applications to provide custom function implementations that can be called from within expressions. This allows for extending the expression language with application-specific functions without modifying the core expression parser.

When a callback function is called, the registered callback procedure is invoked with the function arguments and is expected to compute and return the function result.

See also

Properties

CallBackpublicThe callback procedure for function evaluation

Methods

CreateFunctionpublicCreate callback function with identifier and arguments
GetNodeValuepublicGet callback function result

Inherited

From TFPExprFunction (10)

ArgumentNodes ArgumentParams AsString CalcParams Check ConvertArgument Destroy HasAggregate InitAggregate UpdateAggregate

From TFPExprIdentifierNode (3)

CreateIdentifier Identifier NodeType

From TFPExprNode (3)

CheckNodeType IsAggregate NodeValue

From TObject (41)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create 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.