Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmlScriptAttribute.cs
1using System.Collections.Generic;
2using System.Threading.Tasks;
3using System.Xml;
6
8{
12 public abstract class XmlScriptAttribute : XmlScriptNode
13 {
14 private readonly string name;
15
24 : base(Start, Length, Expression)
25 {
26 this.name = Name;
27 }
28
32 public string Name => this.name;
33
38 internal abstract string GetValue(Variables Variables);
39
44 internal abstract Task<string> GetValueAsync(Variables Variables);
45
51 public override bool IsApplicable(XmlNode CheckAgainst)
52 {
53 return (CheckAgainst is XmlAttribute);
54 }
55
62 public abstract PatternMatchResult PatternMatch(string CheckAgainst, Dictionary<string, IElement> AlreadyFound);
63
69 public abstract bool IsApplicable(string CheckAgainst);
70 }
71}
Class managing a script expression.
Definition: Expression.cs:39
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
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.
XmlScriptAttribute(string Name, int Start, int Length, Expression Expression)
Abstract base class for XML Script attribute nodes.
override bool IsApplicable(XmlNode CheckAgainst)
If the node is applicable in pattern matching against CheckAgainst .
abstract PatternMatchResult PatternMatch(string CheckAgainst, Dictionary< string, IElement > AlreadyFound)
Performs a pattern match operation.
abstract bool IsApplicable(string CheckAgainst)
If the node is applicable in pattern matching against CheckAgainst .
Base class for all XML Script nodes in a parsed script tree.
PatternMatchResult
Status result of a pattern matching operation.
Definition: ScriptNode.cs:17