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

TFPNotNode

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

Internally used class for logical NOT operations

Declaration

Source position: fpexprpars.pp line 386

type TFPNotNode = class(TFPUnaryOperator)

public

  procedure Check; override;

  

Validate the NOT operation for correctness

  function NodeType; override;

  

Get the result type for NOT operations

  procedure GetNodeValue(); override;

  

Calculate the result of NOT operation

  function AsString; override;

  

Get string representation of NOT operation

end;

Inheritance

TFPNotNode

  

Internally used class for logical NOT operations

|

TFPUnaryOperator

  

Internally used class for unary operations with single operand

|

TFPExprNode

  

Class for representing nodes in expression trees

|

TObject

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.

See also

TFPExprNode

  

Class for representing nodes in expression trees


Documentation generated on: Dec 15 2025