expression

< Back


GreaterEqual

Namespace: Albatross.Expression.Infix

Infix GreaterEqual operation.

Operand Count: 2

    • Operand1 : any
    • Operand2 : any

Output Type: Boolean

Usage: 3 >= 2

Precedance: 50

public class GreaterEqual : ComparisonInfixOperation, Albatross.Expression.Nodes.IInfixExpression, Albatross.Expression.Nodes.IExpression, Albatross.Expression.Nodes.IToken, Albatross.Expression.Nodes.IHasPrecedence

Inheritance ObjectInfixExpressionComparisonInfixOperationGreaterEqual
Implements IInfixExpression, IExpression, IToken, IHasPrecedence

Properties

Operator

The operator symbol for this infix operation.

public string Operator { get; }

Property Value

String

Token

The token representation, which is the same as the Operator.

public string Token { get; }

Property Value

String

Precedence

The precedence level of this operation for proper evaluation order.

public int Precedence { get; }

Property Value

Int32

Left

The left operand of the infix operation.

public IExpression Left { get; set; }

Property Value

IExpression

The right operand of the infix operation.

public IExpression Right { get; set; }

Property Value

IExpression

RequiredLeft

Gets the required left operand, throwing an exception if it’s null.

public IExpression RequiredLeft { get; }

Property Value

IExpression

RequiredRight

Gets the required right operand, throwing an exception if it’s null.

public IExpression RequiredRight { get; }

Property Value

IExpression

Constructors

GreaterEqual()

public GreaterEqual()

Methods

Interpret(Int32)

public bool Interpret(int comparisonResult)

Parameters

comparisonResult Int32

Returns

Boolean


< Back