expression

< Back


Concat

Namespace: Albatross.Expression.Prefix

Prefix expression that concatenates multiple operands into a single string. Takes one or more parameters and joins them together without separators.

public class Concat : PrefixExpression, Albatross.Expression.Nodes.IPrefixExpression, Albatross.Expression.Nodes.IExpression, Albatross.Expression.Nodes.IToken

Inheritance ObjectPrefixExpressionConcat
Implements IPrefixExpression, IExpression, IToken

Properties

Name

The name of the prefix function.

public string Name { get; }

Property Value

String

Token

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

public string Token { get; }

Property Value

String

MinOperandCount

The minimum number of operands this function requires.

public int MinOperandCount { get; }

Property Value

Int32

MaxOperandCount

The maximum number of operands this function accepts.

public int MaxOperandCount { get; }

Property Value

Int32

Operands

The list of operand expressions passed to this function.

public IReadOnlyList<IExpression> Operands { get; set; }

Property Value

IReadOnlyList<IExpression>

Constructors

Concat()

Initializes a new instance of the Concat class with name “Concat” and variable parameter count (minimum 1).

public Concat()

Methods

Run(List<Object>)

Concatenates all operands into a single string by converting each to string and joining without separators.

protected object Run(List<object> operands)

Parameters

operands List<Object>
List containing one or more operands to concatenate.

Returns

Object
A string containing all operands concatenated together.


< Back