Class NotNode

Namespace
LogicalOptimizer
Assembly
LogicalOptimizer.Core.dll

Logical negation node. Immutable; hash code is computed once in the constructor.

public sealed class NotNode : AstNode
Inheritance
NotNode
Inherited Members

Constructors

NotNode(AstNode)

Creates a negation of operand.

public NotNode(AstNode operand)

Parameters

operand AstNode

Properties

Operand

Negated operand.

public AstNode Operand { get; }

Property Value

AstNode

Methods

Clone()

Nodes are fully immutable, so cloning returns the same instance.

public override AstNode Clone()

Returns

AstNode

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetVariables()

public override HashSet<string> GetVariables()

Returns

HashSet<string>

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.