Class StringNode<T>
A node for the string tokenizer tree.
Inheritance
System.Object
StringNode<T>
Namespace: EPiServer.HtmlParsing.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class StringNode<T> : Object 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 |