Class Token

Represents a token that is parsed out by the Tokenizer.

Inheritance
System.Object
Token
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Marketing.Validators.Providers.DomParser
Assembly: Mediachase.Commerce.Marketing.Validators.dll
Version: 10.8.0
Syntax
public sealed class Token

Constructors

Token(Object, TokenType, TokenPriority)

Constructor for tokens that are parsed.

Declaration
public Token(object parsedObj, TokenType type, TokenPriority priority)
Parameters
Type Name Description
System.Object parsedObj
TokenType type
TokenPriority priority

Token(String, TokenType, TokenPriority)

Constructor for tokens that are not parsed.

Declaration
public Token(string text, TokenType type, TokenPriority priority)
Parameters
Type Name Description
System.String text
TokenType type
TokenPriority priority

Fields

NullToken

The null token represents a state where the Tokenizer encountered an error or has not begun parsing yet.

Declaration
public static Token NullToken
Field Value
Type Description
Token

Properties

ParsedObject

If the token can be parsed into a type like an integer, this property holds that value.

Declaration
public object ParsedObject { get; }
Property Value
Type Description
System.Object

Priority

Token priority

Declaration
public TokenPriority Priority { get; }
Property Value
Type Description
TokenPriority

Text

The text that makes up the token.

Declaration
public string Text { get; }
Property Value
Type Description
System.String

Type

Token type

Declaration
public TokenType Type { get; }
Property Value
Type Description
TokenType