DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | List of all members
Deveel.Data.Sql.Query.TableNamesVisitor Class Reference
Inheritance diagram for Deveel.Data.Sql.Query.TableNamesVisitor:
Deveel.Data.Sql.Expressions.SqlExpressionVisitor

Public Member Functions

 TableNamesVisitor ()
 
override SqlExpression VisitConstant (SqlConstantExpression constant)
 
- Public Member Functions inherited from Deveel.Data.Sql.Expressions.SqlExpressionVisitor
virtual SqlExpression Visit (SqlExpression expression)
 Visits a given SQL expression. More...
 
virtual SqlExpression[] VisitExpressionList (SqlExpression[] list)
 Visits a list of expressions given. More...
 
virtual SqlExpression VisitFunctionCall (SqlFunctionCallExpression expression)
 Visits the expression that calls the function defined. More...
 
virtual SqlExpression VisitBinary (SqlBinaryExpression binaryEpression)
 
virtual SqlExpression VisitUnary (SqlUnaryExpression unary)
 
virtual SqlExpression VisitCast (SqlCastExpression castExpression)
 
virtual SqlExpression VisitReference (SqlReferenceExpression reference)
 
virtual SqlExpression VisitVariableReference (SqlVariableReferenceExpression reference)
 
virtual SqlExpression VisitAssign (SqlAssignExpression assign)
 
virtual SqlExpression VisitConditional (SqlConditionalExpression conditional)
 
virtual SqlExpression VisitTuple (SqlTupleExpression expression)
 
virtual SqlExpression VisitQuery (SqlQueryExpression query)
 

Properties

IList< ObjectNameTableNames [get, private set]
 

Detailed Description

Definition at line 24 of file TableNamesVisitor.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.TableNamesVisitor.TableNamesVisitor ( )
inline

Definition at line 25 of file TableNamesVisitor.cs.

25  {
26  TableNames = new List<ObjectName>();
27  }

Member Function Documentation

override SqlExpression Deveel.Data.Sql.Query.TableNamesVisitor.VisitConstant ( SqlConstantExpression  constant)
inlinevirtual

Parameters
constant
Returns

Reimplemented from Deveel.Data.Sql.Expressions.SqlExpressionVisitor.

Definition at line 31 of file TableNamesVisitor.cs.

31  {
32  var value = constant.Value;
33  if (!value.IsNull && value.Value is SqlQueryObject &&
34  ((SqlQueryObject)value.Value).QueryPlan != null) {
35 
36  var queryObject = (SqlQueryObject) value.Value;
37  var planNode = queryObject.QueryPlan;
38  TableNames = planNode.DiscoverTableNames();
39  }
40 
41  return base.VisitConstant(constant);
42  }
ISqlObject Value
Gets the underlined value that is handled.
Definition: DataObject.cs:84
DataObject Value
Gets the constant value of the expression.

Property Documentation

IList<ObjectName> Deveel.Data.Sql.Query.TableNamesVisitor.TableNames
getprivate set

Definition at line 29 of file TableNamesVisitor.cs.


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