Show / Hide Table of Contents

Class ExecutionContext<T>

Inheritance
System.Object
ExecutionContext<T>
Implements
IExecutionContext<T>
System.Collections.Generic.IEnumerable<ContextValue>
System.Collections.IEnumerable
Namespace: Albatross.Expression
Assembly: Albatross.Expression.dll
Syntax
public class ExecutionContext<T> : IExecutionContext<T>, IEnumerable<ContextValue>, IEnumerable
Type Parameters
Name Description
T

Constructors

ExecutionContext(IParser, Boolean, Boolean, Boolean, TryGetValueDelegate<T>)

Declaration
public ExecutionContext(IParser parser, bool caseSensitive, bool cacheExternalValue, bool failWhenMissingVariable, TryGetValueDelegate<T> tryGetValueDelegate)
Parameters
Type Name Description
IParser parser
System.Boolean caseSensitive
System.Boolean cacheExternalValue
System.Boolean failWhenMissingVariable
TryGetValueDelegate<T> tryGetValueDelegate

Properties

CacheExternalValue

Declaration
public bool CacheExternalValue { get; }
Property Value
Type Description
System.Boolean

CaseSensitive

Declaration
public bool CaseSensitive { get; }
Property Value
Type Description
System.Boolean

Compiled

Declaration
public bool Compiled { get; }
Property Value
Type Description
System.Boolean

FailWhenMissingVariable

Declaration
public bool FailWhenMissingVariable { get; }
Property Value
Type Description
System.Boolean

Parser

Declaration
public IParser Parser { get; }
Property Value
Type Description
IParser

Store

Declaration
public Dictionary<string, ContextValue> Store { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, ContextValue>

TryGetExternalData

Declaration
public TryGetValueDelegate<T> TryGetExternalData { get; }
Property Value
Type Description
TryGetValueDelegate<T>

Methods

Build()

Declaration
public void Build()

Clear()

Declaration
public void Clear()

Eval(String, T, Type)

Declaration
public object Eval(string expression, T input, Type outputDataType = null)
Parameters
Type Name Description
System.String expression
T input
System.Type outputDataType
Returns
Type Description
System.Object

GetEnumerator()

Declaration
public IEnumerator<ContextValue> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<ContextValue>

GetValue(String, T)

Declaration
public object GetValue(string name, T input)
Parameters
Type Name Description
System.String name
T input
Returns
Type Description
System.Object

Set(ContextValue)

Declaration
public void Set(ContextValue value)
Parameters
Type Name Description
ContextValue value

TryGetValue(String, T, out Object)

Declaration
public bool TryGetValue(string name, T input, out object data)
Parameters
Type Name Description
System.String name
T input
System.Object data
Returns
Type Description
System.Boolean

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

IExecutionContext<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods

Extensions.ConvertToBoolean(Object)
Extensions.SetExpression<T>(IExecutionContext<T>, String, String)
Extensions.SetExpression<T>(IExecutionContext<T>, String, String, Type)
Extensions.SetValue<T>(IExecutionContext<T>, String, Object)
Extensions.GetValue<T>(IExecutionContext<T>, String, T)
Extensions.Set<T>(IExecutionContext<T>, String)
Back to top Generated by DocFX