C# Class Vertesaur.Generation.Expressions.ExpressionBuilderExtensionMethods

Utility and extension methods to support expression generation.
Show file Open project: aarondandy/vertesaur

Public Methods

Method Description
Generate ( this generator, string expressionName ) : Expression

Creates a new expression.

Generate ( this generator, string expressionName, Expression input ) : Expression

Creates a new expression.

Generate ( this generator, string expressionName, Expression input0, Expression input1 ) : Expression

Creates a new expression.

Generate ( this generator, string expressionName, Type resultType ) : Expression

Creates a new expression.

GenerateConversion ( this generator, Type resultType, Expression input ) : Expression

Creates a new conversion expression.

GenerateConversionOrThrow ( this generator, Type resultType, Expression input ) : Expression

Creates a new conversion expression.

GenerateOrThrow ( this generator, string expressionName ) : Expression

Creates a new expression.

GenerateOrThrow ( this generator, string expressionName, Expression input0, Expression input1 ) : Expression

Creates a new expression.

GenerateOrThrow ( this generator, string expressionName, Type resultType ) : Expression

Creates a new expression.

NewConversionRequest ( this generator, Type resultType, Expression input ) : IExpressionGenerationRequest

Creates a new conversion expression request.

NewRequest ( this generator, string expressionName ) : IExpressionGenerationRequest

Creates a new expression request.

NewRequest ( this generator, string expressionName, Type resultType ) : IExpressionGenerationRequest

Creates a new expression request.

Private Methods

Method Description
InvalidOp ( string expressionName, IEnumerable inputExpressions ) : InvalidOperationException
InvalidOp ( string expressionName, Type type ) : InvalidOperationException
InvalidOpConversion ( Type from, Type to ) : InvalidOperationException

Method Details

Generate() public static method

Creates a new expression.
public static Generate ( this generator, string expressionName ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
return System.Linq.Expressions.Expression

Generate() public static method

Creates a new expression.
public static Generate ( this generator, string expressionName, Expression input ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
input System.Linq.Expressions.Expression The requested input for the expression.
return System.Linq.Expressions.Expression

Generate() public static method

Creates a new expression.
public static Generate ( this generator, string expressionName, Expression input0, Expression input1 ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
input0 System.Linq.Expressions.Expression The first requested input for the expression.
input1 System.Linq.Expressions.Expression The second requested input for the expression.
return System.Linq.Expressions.Expression

Generate() public static method

Creates a new expression.
public static Generate ( this generator, string expressionName, Type resultType ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
resultType System.Type The desired result type of the expression.
return System.Linq.Expressions.Expression

GenerateConversion() public static method

Creates a new conversion expression.
public static GenerateConversion ( this generator, Type resultType, Expression input ) : Expression
generator this The expression generator to use.
resultType System.Type The desired result type of the expression to convert to.
input System.Linq.Expressions.Expression The input expression to convert from.
return System.Linq.Expressions.Expression

GenerateConversionOrThrow() public static method

Creates a new conversion expression.
public static GenerateConversionOrThrow ( this generator, Type resultType, Expression input ) : Expression
generator this The expression generator to use.
resultType System.Type The desired result type of the expression to convert to.
input System.Linq.Expressions.Expression The input expression to convert from.
return System.Linq.Expressions.Expression

GenerateOrThrow() public static method

Creates a new expression.
public static GenerateOrThrow ( this generator, string expressionName ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
return Expression

GenerateOrThrow() public static method

Creates a new expression.
public static GenerateOrThrow ( this generator, string expressionName, Expression input0, Expression input1 ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
input0 Expression The first input argument.
input1 Expression The second input argument.
return Expression

GenerateOrThrow() public static method

Creates a new expression.
public static GenerateOrThrow ( this generator, string expressionName, Type resultType ) : Expression
generator this The expression generator to use.
expressionName string The name of the requested expression.
resultType Type The desired result type of the expression.
return Expression

NewConversionRequest() public static method

Creates a new conversion expression request.
public static NewConversionRequest ( this generator, Type resultType, Expression input ) : IExpressionGenerationRequest
generator this The expression generator to use.
resultType Type The desired result type of the conversion expression.
input Expression The input expression to be converted.
return IExpressionGenerationRequest

NewRequest() public static method

Creates a new expression request.
public static NewRequest ( this generator, string expressionName ) : IExpressionGenerationRequest
generator this The expression generator to use.
expressionName string The name of the requested expression.
return IExpressionGenerationRequest

NewRequest() public static method

Creates a new expression request.
public static NewRequest ( this generator, string expressionName, Type resultType ) : IExpressionGenerationRequest
generator this The expression generator to use.
expressionName string The name of the requested expression.
resultType Type The desired result type of the expression.
return IExpressionGenerationRequest