Declaration¶
Source position: fpexprpars.pp line 386
type
TFPNotNode = class(TFPUnaryOperator)
public
procedure Check;
function NodeType : TResultType;
procedure GetNodeValue;
function AsString : AnsiString;
end;
Inheritance¶
Description¶
The TFPNotNode class implements the logical NOT operation that inverts a boolean value. It extends TFPUnaryOperator to provide NOT-specific functionality that converts True to False and False to True.
The NOT operation requires that its operand evaluates to a boolean value. It performs the logical inversion of the boolean result, providing the fundamental logical negation operation for boolean expressions.
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 | public | Get string representation of NOT operation |
| Check | public | Validate the NOT operation for correctness |
| GetNodeValue | public | Calculate the result of NOT operation |
| NodeType | public | Get the result type for NOT operations |
See also¶
| Name | Description |
|---|---|
| TFPExprNode | Class for representing nodes in expression trees |