1using System.Threading.Tasks;
47 object Obj =
Argument1.AssociatedObjectValue;
53 if (
Argument1.AssociatedObjectValue is XmlElement E)
55 else if (
Argument1.AssociatedObjectValue is XmlDocument Doc)
56 return Doc.DocumentElement.HasAttribute(Name) ? BooleanValue.True :
BooleanValue.
False;
Script runtime exception.
Class managing a script expression.
Base class for funcions of two scalar variables.
ScriptNode Argument2
Function argument 2.
ScriptNode Argument1
Function argument 1.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
override string ToString()
int Start
Start position in script expression.
static readonly BooleanValue False
Constant false value.
Checks if an attribute eixts for an XML Element.
HasAttribute(ScriptNode Xml, ScriptNode Name, int Start, int Length, Expression Expression)
Checks if an attribute eixts for an XML Element.
override IElement EvaluateScalar(IElement Argument1, IElement Argument2, Variables Variables)
Evaluates the function on two scalar arguments.
override string[] DefaultArgumentNames
Default Argument names
override string FunctionName
Name of the function
override Task< IElement > EvaluateScalarAsync(IElement Argument1, IElement Argument2, Variables Variables)
Evaluates the function on two scalar arguments.
Basic interface for all types of elements.