FunctionUtils Class

Definition

Utility functions for Adaptive-Expressions.

public static class FunctionUtils
type FunctionUtils = class
Public Class FunctionUtils
Inheritance
FunctionUtils

Fields

DefaultDateTimeFormat

The default date time format string.

Methods

Apply(Func<IReadOnlyList<Object>,Object>, FunctionUtils+VerifyExpression)

Generate an expression delegate that applies function after verifying all children.

ApplySequence(Func<IReadOnlyList<Object>,Object>, FunctionUtils+VerifyExpression)

Generate an expression delegate that applies function on the accumulated value after verifying all children.

ApplySequenceWithError(Func<IReadOnlyList<Object>,ValueTuple<Object,String>>, FunctionUtils+VerifyExpression)

Generate an expression delegate that applies function on the accumulated value after verifying all children.

ApplyWithError(Func<IReadOnlyList<Object>,ValueTuple<Object,String>>, FunctionUtils+VerifyExpression)

Generate an expression delegate that applies function after verifying all children.

ApplyWithOptionsAndError(Func<IReadOnlyList<Object>,Options,ValueTuple<Object,String>>, FunctionUtils+VerifyExpression)

Generate an expression delegate that applies function after verifying all children.

CommonEquals(Object, Object)

Judge if two objects are equal.

EvaluateChildren(Expression, IMemory, Options, FunctionUtils+VerifyExpression)

Evaluate expression children and return them.

TryAccumulatePath(Expression, IMemory, Options)

Try to accumulate the path from an Accessor or Element, from right to left.

TryParseList(Object, IList)

Try to coerce object to IList.

ValidateArityAndAnyType(Expression, Int32, Int32, ReturnType)

Validate that expression has a certain number of children that are of any of the supported types.

ValidateAtLeastOne(Expression)

Validate at least 1 argument of any type.

ValidateBinary(Expression)

Validate there are two children.

ValidateBinaryNumber(Expression)

Validate 2 numeric arguments.

ValidateBinaryNumberOrString(Expression)

Validate there are 2 numeric or string arguments.

ValidateNumber(Expression)

Validate 1 or more numeric arguments.

ValidateOrder(Expression, ReturnType[], ReturnType[])

Validate the number and type of arguments to a function.

ValidateString(Expression)

Validate 1 or more string arguments.

ValidateTwoOrMoreThanTwoNumbers(Expression)

Validate 2 or more than 2 numeric arguments.

ValidateUnary(Expression)

Validate there is a single argument.

ValidateUnaryBoolean(Expression)

Validate there is a single boolean argument.

ValidateUnaryNumber(Expression)

Validate there is a single number argument.

ValidateUnaryOrBinaryNumber(Expression)

Validate 1 or 2 numeric arguments.

ValidateUnaryOrBinaryString(Expression)

Validate 1 or 2 string arguments.

ValidateUnaryString(Expression)

Validate there is a single string argument.

VerifyContainer(Object, Expression, Int32)

Verify value contains elements.

VerifyContainerOrNull(Object, Expression, Int32)

Verify value contains elements or null.

VerifyInteger(Object, Expression, Int32)

Verify value is an integer.

VerifyList(Object, Expression, Int32)

Verify value contains elements.

VerifyNotNull(Object, Expression, Int32)

Verify value is not null.

VerifyNumber(Object, Expression, Int32)

Verify value is numeric.

VerifyNumberOrString(Object, Expression, Int32)

Verify value is a number or string.

VerifyNumberOrStringOrNull(Object, Expression, Int32)

Verify value is a number or string or null.

VerifyNumericList(Object, Expression, Int32)

Verify value is numeric list.

VerifyNumericListOrNumber(Object, Expression, Int32)

Verify value is a numeric list or a numeric value.

VerifyString(Object, Expression, Int32)

Verify value is a string.

VerifyStringOrNull(Object, Expression, Int32)

Verify an object is neither a string nor null.

Applies to