expression

< Back


ValueToken

Namespace: Albatross.Expression.Nodes

Basic implementation of a value token that stores a simple string value.

public class ValueToken : IValueToken, IToken

Inheritance ObjectValueToken
Implements IValueToken, IToken
Attributes NullableContextAttribute, NullableAttribute

Properties

Value

The string value contained by this token.

public string Value { get; }

Property Value

String

Token

The token representation, which is the same as the Value for basic value tokens.

public string Token { get; }

Property Value

String

Constructors

ValueToken(String)

Initializes a new instance of the ValueToken class with the specified value.

public ValueToken(string value)

Parameters

value String
The string value to store in this token.

Methods

Text()

Returns the text representation of this token.

public string Text()

Returns

String
The text representation of the token.


< Back