2using System.Collections.Generic;
14 private readonly
string text;
37 Parent.AppendChild(Document.CreateCDataSection(
this.text));
48 if (CheckAgainst is XmlCDataSection ||
49 CheckAgainst is XmlText ||
50 CheckAgainst is XmlWhitespace ||
51 CheckAgainst is XmlSignificantWhitespace)
53 return CheckAgainst.InnerText.Trim() == this.text.Trim() ? PatternMatchResult.Match :
PatternMatchResult.NoMatch;
66 return (CheckAgainst is XmlCDataSection ||
67 CheckAgainst is XmlText ||
68 CheckAgainst is XmlWhitespace ||
69 CheckAgainst is XmlSignificantWhitespace);
Class managing a script expression.
int Length
Length of expression covered by node.
ScriptNode Parent
Parent node.
int Start
Start position in script expression.
override PatternMatchResult PatternMatch(XmlNode CheckAgainst, Dictionary< string, IElement > AlreadyFound)
Performs a pattern match operation.
XmlScriptCData(string Text, int Start, int Length, Expression Expression)
XML Script CDATA node.
override bool IsApplicable(XmlNode CheckAgainst)
If the node is applicable in pattern matching against CheckAgainst .
Base class for all XML Script leaf nodes in a parsed script tree.
PatternMatchResult
Status result of a pattern matching operation.