Sign in Join
FPDoc Onlineexperiment

TFPBinaryAndOperation class

In unit fpExprPars

Internally used class for binary AND logical operation

Declaration

pascal
TFPBinaryAndOperation = class(TFPBooleanOperation)

Inheritance

  1. TFPBinaryAndOperation
  2. TFPBooleanOperation
  3. TFPBinaryOperation
  4. TFPExprNode
  5. TObject

Description

The TFPBinaryAndOperation class implements the logical AND operation between two boolean operands. It extends TFPBooleanOperation to provide AND-specific functionality that evaluates to True only when both operands are True.

The operation uses short-circuit evaluation, meaning that if the left operand is False, the right operand is not evaluated since the result is already determined to be False. This optimization improves performance and can prevent evaluation of potentially expensive or problematic right operands.

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

GetNodeValueprotected
AsStringpublicGet string representation of AND operation

Inherited

From TFPBooleanOperation (2)

Check NodeType

From TFPBinaryOperation (8)

CheckSameNodeTypes Create Destroy HasAggregate InitAggregate left Right UpdateAggregate

From TFPExprNode (3)

CheckNodeType IsAggregate 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.