Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmlScriptAttributeWildcard.cs
2using System.Threading.Tasks;
3using System.Xml;
6
8{
14 {
23 : base(string.Empty, Start, Length, Expression)
24 {
25 }
26
34 public override bool ForAllChildNodes(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
35 {
36 return true;
37 }
38
45 internal override void Build(XmlDocument Document, XmlElement Parent, Variables Variables)
46 {
47 // Ignore
48 }
49
54 internal override string GetValue(Variables Variables)
55 {
56 return string.Empty;
57 }
58
63 internal override Task<string> GetValueAsync(Variables Variables)
64 {
65 return Task.FromResult(string.Empty);
66 }
67
74 public override PatternMatchResult PatternMatch(XmlNode CheckAgainst, Dictionary<string, IElement> AlreadyFound)
75 {
76 if (CheckAgainst is XmlAttribute)
77 return PatternMatchResult.Match;
78 else
79 return PatternMatchResult.NoMatch;
80 }
81
88 public override PatternMatchResult PatternMatch(string CheckAgainst, Dictionary<string, IElement> AlreadyFound)
89 {
90 return PatternMatchResult.NoMatch;
91 }
92
98 public override bool IsApplicable(string CheckAgainst)
99 {
100 return false;
101 }
102 }
103}
Class managing a script expression.
Definition: Expression.cs:41
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
ScriptNode Parent
Parent node.
Definition: ScriptNode.cs:126
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
Collection of variables.
Definition: Variables.cs:25
Abstract base class for XML Script attribute nodes.
XML Script attribute wildcard node, used in pattern matching to match any attribute or sequence of at...
override bool IsApplicable(string CheckAgainst)
If the node is applicable in pattern matching against CheckAgainst .
override bool ForAllChildNodes(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
override PatternMatchResult PatternMatch(string CheckAgainst, Dictionary< string, IElement > AlreadyFound)
Performs a pattern match operation.
override PatternMatchResult PatternMatch(XmlNode CheckAgainst, Dictionary< string, IElement > AlreadyFound)
Performs a pattern match operation.
XmlScriptAttributeWildcard(int Start, int Length, Expression Expression)
XML Script attribute wildcard node, used in pattern matching to match any attribute or sequence of at...
delegate bool ScriptNodeEventHandler(ScriptNode Node, out ScriptNode NewNode, object State)
Delegate for ScriptNode callback methods.
PatternMatchResult
Status result of a pattern matching operation.
Definition: ScriptNode.cs:17
SearchMethod
Method to traverse the expression structure
Definition: ScriptNode.cs:38