expression

< Back


Len

Namespace: Albatross.Expression.Prefix

Represents the Len function that returns the length of strings, collections, or JSON arrays.

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

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

Len()

Initializes a new instance of the Len class.

public Len()

Methods

Run(List<Object>)

protected object Run(List<object> operands)

Parameters

operands List<Object>

Returns

Object


< Back