SaaS CMS has officially launched! Learn more now.

Class StringNode<T>

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A node for the string tokenizer tree.

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.Internal
Assembly: EPiServer.Framework.dll
Version: 10.10.4
Syntax
public class StringNode<T>
    where T : class
Type Parameters
Name Description
T

Constructors

StringNode()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the StringNode<T> class.

Declaration
public StringNode()
Remarks

Only used to create the root node.

StringNode(T, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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