TFPNegateOperation class
Internally used class for numeric negation operations
Declaration
TFPNegateOperation = class(TFPUnaryOperator)Inheritance
- TFPNegateOperation
- TFPUnaryOperator
- TFPExprNode
- TObject
Description
The TFPNegateOperation class implements numeric negation operations that change the sign of numeric values.
It extends TFPUnaryOperator to provide negation-specific functionality for integers, floats, and currency values.
The negation operation converts positive values to negative and negative values to positive, essentially multiplying the operand by -1.
The operation requires that its operand be a numeric type (integer, float, or currency) and produces a result of the same or compatible numeric type.
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
Check | public | Validate the negation operation for correctness |
NodeType | public | Get the result type for negation operations |
GetNodeValue | public | Calculate the negated value |
AsString | public | Get string representation of negation operation |
Inherited
From TFPUnaryOperator (6)
Create Destroy HasAggregate InitAggregate Operand UpdateAggregate
From TFPExprNode (3)
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.
