expression

< Back


Power

Namespace: Albatross.Expression.Infix

Infix operation that perform an power operation

Operand Count: 2

    • base : double
    • operand : double

Output Type: double

public class Power : InfixExpression, Albatross.Expression.Nodes.IInfixExpression, Albatross.Expression.Nodes.IExpression, Albatross.Expression.Nodes.IToken, Albatross.Expression.Nodes.IHasPrecedence

Inheritance ObjectInfixExpressionPower
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

Power()

public Power()

Methods

Run(Object, Object)

protected object Run(object left, object right)

Parameters

left Object

right Object

Returns

Object


< Back