C# Class Rebel.Framework.Expressions.ExpressionVisitor

Mostrar archivo Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
Visit ( Expression exp ) : Expression

Visits and performs transaction on an expression.

Protected Methods

Method Description
VisitBinary ( BinaryExpression binaryExp ) : Expression

Visit a binary expression.

VisitBinding ( MemberBinding bindingExp ) : MemberBinding

Visit a bindingExp expression.

VisitBindingList ( ReadOnlyCollection original ) : IEnumerable

Visint a binding list expression.

VisitConditional ( ConditionalExpression conditionalExp ) : Expression

Visit a conditional expression.

VisitConstant ( ConstantExpression constantExp ) : Expression

Visit a constant expression.

VisitElementInitializer ( ElementInit elementInitExp ) : ElementInit

Visit a element initialized expression.

VisitElementInitializerList ( ReadOnlyCollection original ) : IEnumerable

Visit a element list initializer expression

VisitInvocation ( InvocationExpression invocationExp ) : Expression

Visit a invocation expression.

VisitLambda ( LambdaExpression lambdaExp ) : Expression

Visit a expression that represents a lambda.

VisitList ( ReadOnlyCollection listExp ) : IEnumerable

Visit a list expression.

VisitListInit ( ListInitExpression listInitExp ) : Expression

Visit a list initializatio expression.

VisitMemberAccess ( MemberExpression methodExp ) : Expression

Visit a member access expression.

VisitMemberAssignment ( MemberAssignment assignmentExp ) : MemberAssignment

Visit a member assignment expression.

VisitMemberInit ( MemberInitExpression memberInitExp ) : Expression

Visit a member initialization expression.

VisitMemberListBinding ( MemberListBinding listBindingExp ) : MemberListBinding

Visit a member list binding expression.

VisitMemberMemberBinding ( MemberMemberBinding memberBindingExp ) : MemberMemberBinding

Visit a member binding expression.

VisitMethodCall ( MethodCallExpression methodCallExp ) : Expression

Visit a method call expression.

VisitNew ( NewExpression newExp ) : NewExpression

Visit a new expresson (ctor)

VisitNewArray ( NewArrayExpression newArrayExp ) : Expression

Visit a new array expression.

VisitParameter ( System.Linq.Expressions.ParameterExpression parameterExp ) : Expression

Visit a parameter expression.

VisitTypeIs ( TypeBinaryExpression typeBinaryExp ) : Expression

Visit a Is expression.

VisitUnary ( UnaryExpression unaryExp ) : Expression

Visit a Unary expression.

Method Details

Visit() public method

Visits and performs transaction on an expression.
Throws when a expression or sub-expression is not supported /// by the Expression visitor.
public Visit ( Expression exp ) : Expression
exp System.Linq.Expressions.Expression The to visit and transform.
return System.Linq.Expressions.Expression

VisitBinary() protected method

Visit a binary expression.
protected VisitBinary ( BinaryExpression binaryExp ) : Expression
binaryExp System.Linq.Expressions.BinaryExpression
return System.Linq.Expressions.Expression

VisitBinding() protected method

Visit a bindingExp expression.
protected VisitBinding ( MemberBinding bindingExp ) : MemberBinding
bindingExp System.Linq.Expressions.MemberBinding
return System.Linq.Expressions.MemberBinding

VisitBindingList() protected method

Visint a binding list expression.
protected VisitBindingList ( ReadOnlyCollection original ) : IEnumerable
original ReadOnlyCollection
return IEnumerable

VisitConditional() protected method

Visit a conditional expression.
protected VisitConditional ( ConditionalExpression conditionalExp ) : Expression
conditionalExp System.Linq.Expressions.ConditionalExpression
return System.Linq.Expressions.Expression

VisitConstant() protected method

Visit a constant expression.
protected VisitConstant ( ConstantExpression constantExp ) : Expression
constantExp System.Linq.Expressions.ConstantExpression
return System.Linq.Expressions.Expression

VisitElementInitializer() protected method

Visit a element initialized expression.
protected VisitElementInitializer ( ElementInit elementInitExp ) : ElementInit
elementInitExp System.Linq.Expressions.ElementInit
return System.Linq.Expressions.ElementInit

VisitElementInitializerList() protected method

Visit a element list initializer expression
protected VisitElementInitializerList ( ReadOnlyCollection original ) : IEnumerable
original ReadOnlyCollection
return IEnumerable

VisitInvocation() protected method

Visit a invocation expression.
protected VisitInvocation ( InvocationExpression invocationExp ) : Expression
invocationExp System.Linq.Expressions.InvocationExpression
return System.Linq.Expressions.Expression

VisitLambda() protected method

Visit a expression that represents a lambda.
protected VisitLambda ( LambdaExpression lambdaExp ) : Expression
lambdaExp System.Linq.Expressions.LambdaExpression
return System.Linq.Expressions.Expression

VisitList() protected method

Visit a list expression.
protected VisitList ( ReadOnlyCollection listExp ) : IEnumerable
listExp ReadOnlyCollection
return IEnumerable

VisitListInit() protected method

Visit a list initializatio expression.
protected VisitListInit ( ListInitExpression listInitExp ) : Expression
listInitExp System.Linq.Expressions.ListInitExpression
return System.Linq.Expressions.Expression

VisitMemberAccess() protected method

Visit a member access expression.
protected VisitMemberAccess ( MemberExpression methodExp ) : Expression
methodExp System.Linq.Expressions.MemberExpression
return System.Linq.Expressions.Expression

VisitMemberAssignment() protected method

Visit a member assignment expression.
protected VisitMemberAssignment ( MemberAssignment assignmentExp ) : MemberAssignment
assignmentExp System.Linq.Expressions.MemberAssignment
return System.Linq.Expressions.MemberAssignment

VisitMemberInit() protected method

Visit a member initialization expression.
protected VisitMemberInit ( MemberInitExpression memberInitExp ) : Expression
memberInitExp System.Linq.Expressions.MemberInitExpression
return System.Linq.Expressions.Expression

VisitMemberListBinding() protected method

Visit a member list binding expression.
protected VisitMemberListBinding ( MemberListBinding listBindingExp ) : MemberListBinding
listBindingExp System.Linq.Expressions.MemberListBinding
return System.Linq.Expressions.MemberListBinding

VisitMemberMemberBinding() protected method

Visit a member binding expression.
protected VisitMemberMemberBinding ( MemberMemberBinding memberBindingExp ) : MemberMemberBinding
memberBindingExp System.Linq.Expressions.MemberMemberBinding
return System.Linq.Expressions.MemberMemberBinding

VisitMethodCall() protected method

Visit a method call expression.
protected VisitMethodCall ( MethodCallExpression methodCallExp ) : Expression
methodCallExp System.Linq.Expressions.MethodCallExpression
return System.Linq.Expressions.Expression

VisitNew() protected method

Visit a new expresson (ctor)
protected VisitNew ( NewExpression newExp ) : NewExpression
newExp System.Linq.Expressions.NewExpression
return System.Linq.Expressions.NewExpression

VisitNewArray() protected method

Visit a new array expression.
protected VisitNewArray ( NewArrayExpression newArrayExp ) : Expression
newArrayExp System.Linq.Expressions.NewArrayExpression
return System.Linq.Expressions.Expression

VisitParameter() protected method

Visit a parameter expression.
protected VisitParameter ( System.Linq.Expressions.ParameterExpression parameterExp ) : Expression
parameterExp System.Linq.Expressions.ParameterExpression
return System.Linq.Expressions.Expression

VisitTypeIs() protected method

Visit a Is expression.
protected VisitTypeIs ( TypeBinaryExpression typeBinaryExp ) : Expression
typeBinaryExp System.Linq.Expressions.TypeBinaryExpression
return System.Linq.Expressions.Expression

VisitUnary() protected method

Visit a Unary expression.
protected VisitUnary ( UnaryExpression unaryExp ) : Expression
unaryExp System.Linq.Expressions.UnaryExpression
return System.Linq.Expressions.Expression