Table of Contents

Class BooleanLiteral

Namespace
Albatross.Expression.Nodes
Assembly
Albatross.Expression.dll

Represents a boolean literal with values 'true' or 'false' (case-insensitive).

public class BooleanLiteral : ValueToken, IValueToken, IExpression, IToken
Inheritance
BooleanLiteral
Implements
Inherited Members
Extension Methods

Constructors

BooleanLiteral(string)

Initializes a new instance of the BooleanLiteral class.

public BooleanLiteral(string value)

Parameters

value string

The string representation of the boolean value.

Methods

Eval(Func<string, object>)

Evaluates the expression synchronously using the provided context function.

public object Eval(Func<string, object> _)

Parameters

_ Func<string, object>

Returns

object

The result of evaluating the expression.

EvalAsync(Func<string, Task<object>>)

Evaluates the expression asynchronously using the provided context function.

public Task<object> EvalAsync(Func<string, Task<object>> context)

Parameters

context Func<string, Task<object>>

A function that asynchronously resolves variable names to their values.

Returns

Task<object>

A task containing the result of evaluating the expression.