DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Protected Member Functions | Package Functions | Private Attributes | List of all members
Deveel.Data.Linq.ExpressionTreeModifier Class Reference
Inheritance diagram for Deveel.Data.Linq.ExpressionTreeModifier:
Deveel.Data.Linq.ExpressionVisitor

Protected Member Functions

override Expression VisitConstant (ConstantExpression c)
 
- Protected Member Functions inherited from Deveel.Data.Linq.ExpressionVisitor
 ExpressionVisitor ()
 
virtual MemberBinding VisitBinding (MemberBinding binding)
 
virtual ElementInit VisitElementInitializer (ElementInit initializer)
 
virtual Expression VisitUnary (UnaryExpression u)
 
virtual Expression VisitBinary (BinaryExpression b)
 
virtual Expression VisitTypeIs (TypeBinaryExpression b)
 
virtual Expression VisitConditional (ConditionalExpression c)
 
virtual Expression VisitParameter (ParameterExpression p)
 
virtual Expression VisitMemberAccess (MemberExpression m)
 
virtual Expression VisitMethodCall (MethodCallExpression m)
 
virtual ReadOnlyCollection< Expression > VisitExpressionList (ReadOnlyCollection< Expression > original)
 
virtual MemberAssignment VisitMemberAssignment (MemberAssignment assignment)
 
virtual MemberMemberBinding VisitMemberMemberBinding (MemberMemberBinding binding)
 
virtual MemberListBinding VisitMemberListBinding (MemberListBinding binding)
 
virtual IEnumerable< MemberBinding > VisitBindingList (ReadOnlyCollection< MemberBinding > original)
 
virtual IEnumerable< ElementInit > VisitElementInitializerList (ReadOnlyCollection< ElementInit > original)
 
virtual Expression VisitLambda (LambdaExpression lambda)
 
virtual NewExpression VisitNew (NewExpression nex)
 
virtual Expression VisitMemberInit (MemberInitExpression init)
 
virtual Expression VisitListInit (ListInitExpression init)
 
virtual Expression VisitNewArray (NewArrayExpression na)
 
virtual Expression VisitInvocation (InvocationExpression iv)
 

Package Functions

 ExpressionTreeModifier (IQueryable contents, Type elementType)
 

Private Attributes

IQueryable queryableContents
 
readonly Type queryType
 

Additional Inherited Members

- Public Member Functions inherited from Deveel.Data.Linq.ExpressionVisitor
virtual Expression Visit (Expression exp)
 

Detailed Description

Definition at line 24 of file ExpressionTreeModifier.cs.

Constructor & Destructor Documentation

Deveel.Data.Linq.ExpressionTreeModifier.ExpressionTreeModifier ( IQueryable  contents,
Type  elementType 
)
inlinepackage

Definition at line 28 of file ExpressionTreeModifier.cs.

28  {
29  queryableContents = contents;
30  queryType = typeof (QueryableTable<>).MakeGenericType(elementType);
31  }

Member Function Documentation

override Expression Deveel.Data.Linq.ExpressionTreeModifier.VisitConstant ( ConstantExpression  c)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Linq.ExpressionVisitor.

Definition at line 33 of file ExpressionTreeModifier.cs.

33  {
34  if (c.Type == queryType)
35  return Expression.Constant(queryableContents);
36 
37  return c;
38  }

Member Data Documentation

IQueryable Deveel.Data.Linq.ExpressionTreeModifier.queryableContents
private

Definition at line 25 of file ExpressionTreeModifier.cs.

readonly Type Deveel.Data.Linq.ExpressionTreeModifier.queryType
private

Definition at line 26 of file ExpressionTreeModifier.cs.


The documentation for this class was generated from the following file: