37 public object Tag {
get;
set; }
96 public virtual bool TryConvertTo(Type DesiredType, out
object Value)
106 this.elements.Count != Typed.elements.Count)
111 IEnumerator<IElement> e1 =
null;
112 IEnumerator<IElement> e2 =
null;
116 e1 = this.elements.GetEnumerator();
117 e2 = Typed.elements.GetEnumerator();
119 while (e1.MoveNext() && e2.MoveNext())
121 if (!e1.Current.Equals(e2.Current))
137 int Result = this.elements.Count.GetHashCode();
191 this.elements[Index] = Value;
Contains a vector of semantic elements.
object Tag
Property used by processor, to tag information to an element.
bool IsScalar
If the element represents a scalar value.
ICollection< IElement > VectorElements
An enumeration of vector elements.
bool IsLiteral
If element is a literal.
IElement Encapsulate(ICollection< IElement > Elements, ScriptNode Node)
Encapsulates a set of elements into a similar structure as that provided by the current element.
ISet AssociatedSet
Associated Set.
virtual int CompareTo(object obj)
Compares the current instance with another object of the same type and returns an integer that indica...
ICollection< IElement > ChildElements
An enumeration of child elements. If the element is a scalar, this property will return null.
virtual bool TryConvertTo(Type DesiredType, out object Value)
Converts the value to a .NET type.
void SetElement(int Index, IElement Value)
Sets an element in the vector.
override string ToString()
IElement Encapsulate(ChunkedList< IElement > Elements, ScriptNode Node)
Encapsulates a set of elements into a similar structure as that provided by the current element.
void Add(ISemanticElement Element)
Adds a semantic element to the vector.
int Dimension
Dimension of vector.
object AssociatedObjectValue
Associated object value.
IElement GetElement(int Index)
Gets an element of the vector.
SemanticElementVector()
Contains a vector of semantic elements.
override int GetHashCode()
override bool Equals(object obj)
Set of semantic elements.
static readonly SemanticElements Instance
Instance reference to the set of semantic elements.
A chunked list is a linked list of chunks of objects of type T .
void AddRange(IEnumerable< T > Collection)
Adds a range of elements (last) to the list.
Base class for all types of elements.
abstract override int GetHashCode()
Calculates a hash code of the element.
Class managing a script expression.
static string ToExpressionString(object Value)
Converts an object to a string, that can be parsed as part of an expression.
Base class for all nodes in a parsed script tree.
Interface for semantic nodes.
Basic interface for all types of elements.
Basic interface for vectors.
Basic interface for all types of sets.