Class Extensions
Inheritance
System.Object
Extensions
Assembly: Albatross.Expression.dll
Syntax
public static class Extensions
Methods
Compile(IParser, String)
Declaration
public static IToken Compile(this IParser parser, string expression)
Parameters
Type |
Name |
Description |
IParser |
parser |
|
System.String |
expression |
|
Returns
ConvertToBoolean(Object)
Declaration
public static bool ConvertToBoolean(this object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetValue<T>(IExecutionContext<T>, String, T)
Declaration
public static object GetValue<T>(this IExecutionContext<T> context, string name, T input)
Parameters
Returns
Type |
Description |
System.Object |
|
Type Parameters
IsVariable(IToken)
Declaration
public static bool IsVariable(this IToken token)
Parameters
Type |
Name |
Description |
IToken |
token |
|
Returns
Type |
Description |
System.Boolean |
|
Set<T>(IExecutionContext<T>, String)
Declaration
public static ContextValue Set<T>(this IExecutionContext<T> context, string assignmentExpression)
Parameters
Type |
Name |
Description |
IExecutionContext<T> |
context |
|
System.String |
assignmentExpression |
|
Returns
Type Parameters
SetExpression<T>(IExecutionContext<T>, String, String)
Declaration
public static void SetExpression<T>(this IExecutionContext<T> context, string name, string expression)
Parameters
Type |
Name |
Description |
IExecutionContext<T> |
context |
|
System.String |
name |
|
System.String |
expression |
|
Type Parameters
SetExpression<T>(IExecutionContext<T>, String, String, Type)
Declaration
public static void SetExpression<T>(this IExecutionContext<T> context, string name, string expression, Type dataType)
Parameters
Type |
Name |
Description |
IExecutionContext<T> |
context |
|
System.String |
name |
|
System.String |
expression |
|
System.Type |
dataType |
|
Type Parameters
SetValue<T>(IExecutionContext<T>, String, Object)
Declaration
public static void SetValue<T>(this IExecutionContext<T> context, string name, object value)
Parameters
Type |
Name |
Description |
IExecutionContext<T> |
context |
|
System.String |
name |
|
System.Object |
value |
|
Type Parameters
SkipSpace(String, Int32)
Move find the next index that is not a space. This method doesn't perform check of the starting index in any way.
Declaration
public static int SkipSpace(this string expression, int start)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
System.Int32 |
start |
The current index
|
Returns
Type |
Description |
System.Int32 |
|