C# Class IQ.ExpressionWriter

Writes out an expression tree in a C#-ish syntax
Inheritance: ExpressionVisitor
Mostrar archivo Open project: maravillas/linq-to-delicious

Public Methods

Method Description
Write ( TextWriter writer, Expression expression ) : void
WriteToString ( Expression expression ) : string

Protected Methods

Method Description
ExpressionWriter ( TextWriter writer ) : System
GetOperator ( ExpressionType type ) : string
GetTypeName ( Type type ) : string
Indent ( Indentation style ) : void
VisitBinary ( BinaryExpression b ) : Expression
VisitBindingList ( ReadOnlyCollection original ) : IEnumerable
VisitConditional ( ConditionalExpression c ) : Expression
VisitConstant ( ConstantExpression c ) : Expression
VisitElementInitializer ( ElementInit initializer ) : ElementInit
VisitElementInitializerList ( ReadOnlyCollection original ) : IEnumerable
VisitExpressionList ( ReadOnlyCollection original ) : ReadOnlyCollection
VisitInvocation ( InvocationExpression iv ) : Expression
VisitLambda ( LambdaExpression lambda ) : Expression
VisitListInit ( ListInitExpression init ) : Expression
VisitMemberAccess ( MemberExpression m ) : Expression
VisitMemberAssignment ( MemberAssignment assignment ) : MemberAssignment
VisitMemberInit ( MemberInitExpression init ) : Expression
VisitMemberListBinding ( MemberListBinding binding ) : MemberListBinding
VisitMemberMemberBinding ( MemberMemberBinding binding ) : MemberMemberBinding
VisitMethodCall ( MethodCallExpression m ) : Expression
VisitNew ( NewExpression nex ) : NewExpression
VisitNewArray ( NewArrayExpression na ) : Expression
VisitParameter ( System.Linq.Expressions.ParameterExpression p ) : Expression
VisitTypeIs ( TypeBinaryExpression b ) : Expression
VisitUnary ( UnaryExpression u ) : Expression
VisitUnknown ( Expression expression ) : Expression
Write ( string text ) : void
WriteLine ( Indentation style ) : void

Method Details

ExpressionWriter() protected method

protected ExpressionWriter ( TextWriter writer ) : System
writer System.IO.TextWriter
return System

GetOperator() protected method

protected GetOperator ( ExpressionType type ) : string
type ExpressionType
return string

GetTypeName() protected method

protected GetTypeName ( Type type ) : string
type System.Type
return string

Indent() protected method

protected Indent ( Indentation style ) : void
style Indentation
return void

VisitBinary() protected method

protected VisitBinary ( BinaryExpression b ) : Expression
b System.Linq.Expressions.BinaryExpression
return System.Linq.Expressions.Expression

VisitBindingList() protected method

protected VisitBindingList ( ReadOnlyCollection original ) : IEnumerable
original ReadOnlyCollection
return IEnumerable

VisitConditional() protected method

protected VisitConditional ( ConditionalExpression c ) : Expression
c System.Linq.Expressions.ConditionalExpression
return System.Linq.Expressions.Expression

VisitConstant() protected method

protected VisitConstant ( ConstantExpression c ) : Expression
c System.Linq.Expressions.ConstantExpression
return System.Linq.Expressions.Expression

VisitElementInitializer() protected method

protected VisitElementInitializer ( ElementInit initializer ) : ElementInit
initializer System.Linq.Expressions.ElementInit
return System.Linq.Expressions.ElementInit

VisitElementInitializerList() protected method

protected VisitElementInitializerList ( ReadOnlyCollection original ) : IEnumerable
original ReadOnlyCollection
return IEnumerable

VisitExpressionList() protected method

protected VisitExpressionList ( ReadOnlyCollection original ) : ReadOnlyCollection
original ReadOnlyCollection
return ReadOnlyCollection

VisitInvocation() protected method

protected VisitInvocation ( InvocationExpression iv ) : Expression
iv System.Linq.Expressions.InvocationExpression
return System.Linq.Expressions.Expression

VisitLambda() protected method

protected VisitLambda ( LambdaExpression lambda ) : Expression
lambda System.Linq.Expressions.LambdaExpression
return System.Linq.Expressions.Expression

VisitListInit() protected method

protected VisitListInit ( ListInitExpression init ) : Expression
init System.Linq.Expressions.ListInitExpression
return System.Linq.Expressions.Expression

VisitMemberAccess() protected method

protected VisitMemberAccess ( MemberExpression m ) : Expression
m System.Linq.Expressions.MemberExpression
return System.Linq.Expressions.Expression

VisitMemberAssignment() protected method

protected VisitMemberAssignment ( MemberAssignment assignment ) : MemberAssignment
assignment System.Linq.Expressions.MemberAssignment
return System.Linq.Expressions.MemberAssignment

VisitMemberInit() protected method

protected VisitMemberInit ( MemberInitExpression init ) : Expression
init System.Linq.Expressions.MemberInitExpression
return System.Linq.Expressions.Expression

VisitMemberListBinding() protected method

protected VisitMemberListBinding ( MemberListBinding binding ) : MemberListBinding
binding System.Linq.Expressions.MemberListBinding
return System.Linq.Expressions.MemberListBinding

VisitMemberMemberBinding() protected method

protected VisitMemberMemberBinding ( MemberMemberBinding binding ) : MemberMemberBinding
binding System.Linq.Expressions.MemberMemberBinding
return System.Linq.Expressions.MemberMemberBinding

VisitMethodCall() protected method

protected VisitMethodCall ( MethodCallExpression m ) : Expression
m System.Linq.Expressions.MethodCallExpression
return System.Linq.Expressions.Expression

VisitNew() protected method

protected VisitNew ( NewExpression nex ) : NewExpression
nex System.Linq.Expressions.NewExpression
return System.Linq.Expressions.NewExpression

VisitNewArray() protected method

protected VisitNewArray ( NewArrayExpression na ) : Expression
na System.Linq.Expressions.NewArrayExpression
return System.Linq.Expressions.Expression

VisitParameter() protected method

protected VisitParameter ( System.Linq.Expressions.ParameterExpression p ) : Expression
p System.Linq.Expressions.ParameterExpression
return System.Linq.Expressions.Expression

VisitTypeIs() protected method

protected VisitTypeIs ( TypeBinaryExpression b ) : Expression
b System.Linq.Expressions.TypeBinaryExpression
return System.Linq.Expressions.Expression

VisitUnary() protected method

protected VisitUnary ( UnaryExpression u ) : Expression
u System.Linq.Expressions.UnaryExpression
return System.Linq.Expressions.Expression

VisitUnknown() protected method

protected VisitUnknown ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

Write() public static method

public static Write ( TextWriter writer, Expression expression ) : void
writer System.IO.TextWriter
expression System.Linq.Expressions.Expression
return void

Write() protected method

protected Write ( string text ) : void
text string
return void

WriteLine() protected method

protected WriteLine ( Indentation style ) : void
style Indentation
return void

WriteToString() public static method

public static WriteToString ( Expression expression ) : string
expression System.Linq.Expressions.Expression
return string