SaaS CMS has officially launched! Learn more now.

Class StringNode<T>

A node for the string tokenizer tree. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
StringNode<T>
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: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 7.19.2
Syntax
public class StringNode<T>

    where T : class
Type Parameters
Name Description
T

Constructors

StringNode()

Initializes a new instance of the StringNode<T> class.

Declaration
public StringNode()
Remarks

Only used to create the root node.

StringNode(T, String)

Initializes a new instance of the StringNode<T> class.

Declaration
protected StringNode(T token, string name)
Parameters
Type Name Description
T token

The token.

System.String name

The name.

Remarks

Used to create all non-root nodes.

Properties

Token

Gets or sets the token.

Declaration
public T Token { get; }
Property Value
Type Description
T

The token.

Methods

Add(T, String)

Declaration
public void Add(T token, string name)
Parameters
Type Name Description
T token
System.String name

AddHere(T, String)

Declaration
protected void AddHere(T token, string name)
Parameters
Type Name Description
T token
System.String name

AddInternal(T, String)

Declaration
protected bool AddInternal(T token, string name)
Parameters
Type Name Description
T token
System.String name
Returns
Type Description
System.Boolean

Find(Char[], Int32)

Declaration
public T Find(char[] token, int length)
Parameters
Type Name Description
System.Char[] token
System.Int32 length
Returns
Type Description
T

Find(Char[], Int32, Int32)

Declaration
protected T Find(char[] token, int position, int length)
Parameters
Type Name Description
System.Char[] token
System.Int32 position
System.Int32 length
Returns
Type Description
T

MakeReadOnly()

Makes this instance read-only.

Declaration
public void MakeReadOnly()
Remarks

In addition to making the StringNode tree immutable, it also sets up the lookup indices for quick token lookup.

Split(Int32)

Declaration
public void Split(int newPrefixLength)
Parameters
Type Name Description
System.Int32 newPrefixLength

Extension Methods