Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmlScriptAttribute.cs
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
52 public override bool IsApplicable(XmlNode CheckAgainst, XmlElement First)
53 {
54 return CheckAgainst is XmlAttribute;
55 }
56
63 public abstract PatternMatchResult PatternMatch(string CheckAgainst, Dictionary<string, IElement> AlreadyFound);
64
70 public abstract bool IsApplicable(string CheckAgainst);
71 }
72}
Class managing a script expression.
Definition: Expression.cs:41
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.
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 .
override bool IsApplicable(XmlNode CheckAgainst, XmlElement First)
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