TFPUnaryOperator class
Internally used class for unary operations with single operand
Declaration
TFPUnaryOperator = class(TFPExprNode)Inheritance
- TFPUnaryOperator
- TFPExprNode
- TObject
Descends from it: TFPConvertNode TFPNegateOperation TFPNotNode
Description
TFPUnaryOperator is the base class for all unary operations in the expression parser.
Unary operations take a single operand and perform some operation to produce a result.
It extends
TFPExprNode to provide the foundation for all single-operand operations.
The class manages the operand node and provides common functionality such as aggregate handling, validation, and resource management that is shared by all unary operations.
Derived classes implement specific operations such as logical NOT, numeric negation, and type conversions. Each operation defines its own evaluation logic while leveraging the common unary operation infrastructure.
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
Properties
Operand | public | The operand expression of the unary operator |
Methods
Create | public | Create unary operator with operand |
Destroy | public | Destroy unary operator and free resources |
InitAggregate | public | Initialize aggregate processing for unary operator |
UpdateAggregate | public | Update aggregate calculations for unary operator |
HasAggregate | public | Check if unary operator contains aggregates |
Check | public | Validate the unary operator for correctness |
Inherited
From TFPExprNode (6)
AsString 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.
