2using System.Threading.Tasks;
20 private readonly
int width;
30 this.columns = Columns;
31 this.width = this.columns.
Length;
39 get => this.variables;
40 internal set => this.variables = value;
49 string[] Headers =
new string[this.width];
52 for (i = 0; i < this.width; i++)
55 Headers[i] = Ref.VariableName;
57 Headers[i] =
"c" + (i + 1).ToString();
60 return new ObjectMatrix(this.height, this.width, this.elements)
74 this.elements.Clear();
76 return Task.FromResult(
true);
85 return Task.FromResult(
true);
95 return Task.FromResult(
true);
104 return Task.FromResult(
true);
114 return Task.FromResult(
true);
125 return Task.FromResult(
true);
134 return Task.FromResult(
true);
147 return Task.FromResult(
true);
158 return Task.FromResult(
true);
167 if (this.variables is
null)
181 this.elements.Add(E);
201 return Task.FromResult(
true);
211 return Task.FromResult(
true);
221 return Task.FromResult(
true);
A chunked list is a linked list of chunks of objects of type T .
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
virtual bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
abstract IElement Evaluate(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection. This method should be ...
virtual Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection. This method should be ...
Represents a variable reference.
Export is serialized into table form.
Task< bool > StartBlock(string BlockID)
Is called when a block in a collection is started.
Task< bool > EndLedger()
Is called when export of ledger is finished.
ObjectMatrix ToMatrix()
Converts the exported information into an object matrix with column headers.
Task< bool > StartLedger(ILedgerProvider Provider)
Is called when export of ledger is started.
Task< bool > EndCollection()
Is called when a collection is finished.
Task< bool > BlockMetaData(string Key, object Value)
Reports block meta-data.
Task< bool > StartCollection(string CollectionName)
Is called when a collection is started.
Task< bool > ReportError(string Message)
Is called when an error is reported.
async Task< bool > EndEntry()
Is called when an entry is finished.
Task< bool > ReportException(Exception Exception)
Is called when an exception has occurred.
Task< bool > ReportProperty(string PropertyName, object PropertyValue)
Is called when a property is reported.
Task< bool > StartEntry(string ObjectId, string TypeName, EntryType EntryType, DateTimeOffset EntryTimestamp)
Is called when an entry is started.
ExportToTable(ScriptNode[] Columns)
Export is serialized into object form.
Task< bool > CollectionCleared(DateTimeOffset EntryTimestamp)
Is called when the collection has been cleared.
Task< bool > EndBlock()
Is called when a block in a collection is finished.
Interface for ledger providers that can be plugged into the static Ledger class.
Interface for ledger exports.
Basic interface for all types of elements.
EntryType
Ledger entry type.