Class Visitor
Visitor enabling dispatching to the correct.
Inherited Members
Namespace: TimeCockpit.Data.QueryLanguage.Syntax
Assembly: TimeCockpit.Data.dll
Syntax
public abstract class Visitor
Constructors
Visitor()
Declaration
protected Visitor()
Methods
VisitAggregationFunctionCall(AggregationFunctionCall)
Visits an AggregationFunctionCall.
Declaration
public abstract Expression VisitAggregationFunctionCall(AggregationFunctionCall aggregateFunctionCall)
Parameters
Type | Name | Description |
---|---|---|
AggregationFunctionCall | aggregateFunctionCall | the AggregationFunctionCall to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitAndConvert<T>(T)
Visits a node and returns the (possibly modified value) already casted.
Declaration
public T VisitAndConvert<T>(T node)
where T : Node
Parameters
Type | Name | Description |
---|---|---|
T | node | The node instance. |
Returns
Type | Description |
---|---|
T | Returns the value of |
Type Parameters
Name | Description |
---|---|
T | The type of the ndoe to visit. |
VisitBackReferenceSource(BackReferenceSource)
Visits a BackReferenceSource.
Declaration
public abstract QuerySource VisitBackReferenceSource(BackReferenceSource backReferenceSource)
Parameters
Type | Name | Description |
---|---|---|
BackReferenceSource | backReferenceSource | The BackReferenceSource to visit. |
Returns
Type | Description |
---|---|
QuerySource | Rturns the (possibly modified) node. |
VisitBinaryExpression(BinaryExpression)
Visits a BinaryExpression.
Declaration
public abstract Expression VisitBinaryExpression(BinaryExpression binaryExpression)
Parameters
Type | Name | Description |
---|---|---|
BinaryExpression | binaryExpression | the BinaryExpression to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitBooleanConstant(BooleanConstant)
Visits a BooleanConstant.
Declaration
public abstract Expression VisitBooleanConstant(BooleanConstant booleanConstant)
Parameters
Type | Name | Description |
---|---|---|
BooleanConstant | booleanConstant | the BooleanConstant to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitDateConstant(DateConstant)
Visits a DateConstant.
Declaration
public abstract Expression VisitDateConstant(DateConstant dateConstant)
Parameters
Type | Name | Description |
---|---|---|
DateConstant | dateConstant | the DateConstant to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitDateTimeConstant(DateTimeConstant)
Visits a DateTimeConstant.
Declaration
public abstract Expression VisitDateTimeConstant(DateTimeConstant dateTimeConstant)
Parameters
Type | Name | Description |
---|---|---|
DateTimeConstant | dateTimeConstant | the DateTimeConstant to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitDeadOfSource(DeadOfSource)
Visits a DeadOfSource.
Declaration
public abstract QuerySource VisitDeadOfSource(DeadOfSource deadOfSource)
Parameters
Type | Name | Description |
---|---|---|
DeadOfSource | deadOfSource | The dead of source to visit. |
Returns
Type | Description |
---|---|
QuerySource | Returns the (possibly modified) node. |
VisitDecimalConstant(DecimalConstant)
Visits a DecimalConstant.
Declaration
public abstract Expression VisitDecimalConstant(DecimalConstant decimalConstant)
Parameters
Type | Name | Description |
---|---|---|
DecimalConstant | decimalConstant | the DecimalConstant to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitEntitySource(EntitySource)
Visits a QueryTableSource.
Declaration
public abstract QuerySource VisitEntitySource(EntitySource queryTableSource)
Parameters
Type | Name | Description |
---|---|---|
EntitySource | queryTableSource | the QueryTableSource to visit. |
Returns
Type | Description |
---|---|
QuerySource | Returns the (possibly modified) node. |
VisitEntitySourceIncludeConditional(EntitySourceIncludeConditional)
Visits a QueryTableSourceIncludeConditional.
Declaration
public abstract EntitySourceInclude VisitEntitySourceIncludeConditional(EntitySourceIncludeConditional includeConditional)
Parameters
Type | Name | Description |
---|---|---|
EntitySourceIncludeConditional | includeConditional | the QueryTableSourceIncludeConditional to visit. |
Returns
Type | Description |
---|---|
EntitySourceInclude | Returns the (possibly modified) node. |
VisitEntitySourceIncludeRelation(EntitySourceIncludeRelation)
Visits a QueryTableSourceIncludeRelation.
Declaration
public abstract EntitySourceInclude VisitEntitySourceIncludeRelation(EntitySourceIncludeRelation includeRelation)
Parameters
Type | Name | Description |
---|---|---|
EntitySourceIncludeRelation | includeRelation | the QueryTableSourceIncludeRelation to visit. |
Returns
Type | Description |
---|---|
EntitySourceInclude | Returns the (possibly modified) node. |
VisitExplicitSet(ExplicitSet)
Visits a ExplicitSet.
Declaration
public abstract Set VisitExplicitSet(ExplicitSet explicitSet)
Parameters
Type | Name | Description |
---|---|---|
ExplicitSet | explicitSet | the ExplicitSet to visit. |
Returns
Type | Description |
---|---|
Set | Returns the (possibly modified) node. |
VisitFunctionCall(FunctionCall)
Visits a FunctionCall.
Declaration
public abstract Expression VisitFunctionCall(FunctionCall functionCall)
Parameters
Type | Name | Description |
---|---|---|
FunctionCall | functionCall | the FunctionCall to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitGuidConstant(GuidConstant)
Visits a GuidConstant.
Declaration
public abstract Expression VisitGuidConstant(GuidConstant guidConstant)
Parameters
Type | Name | Description |
---|---|---|
GuidConstant | guidConstant | the GuidConstant to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitHasChangedFunction(HasChangedFunction)
Visits a HasChangedFunction.
Declaration
public abstract Expression VisitHasChangedFunction(HasChangedFunction hasChangedFunction)
Parameters
Type | Name | Description |
---|---|---|
HasChangedFunction | hasChangedFunction | The HasChangedFunction to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the possibly modified expression. |
VisitMemberAccess(MemberAccess)
Visits a MemberAccess.
Declaration
public abstract Expression VisitMemberAccess(MemberAccess memberAccess)
Parameters
Type | Name | Description |
---|---|---|
MemberAccess | memberAccess | the MemberAccess to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitMemberDeclarationForwarded(MemberDeclarationForwarded)
Visits an instance of MemberDeclarationForwarded.
Declaration
public abstract MemberDeclaration VisitMemberDeclarationForwarded(MemberDeclarationForwarded forwarded)
Parameters
Type | Name | Description |
---|---|---|
MemberDeclarationForwarded | forwarded | The MemberDeclarationForwarded instance. |
Returns
Type | Description |
---|---|
MemberDeclaration | Returns the (possibly modified) node. |
VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression)
Visits an instace of MemberDeclarationNamedExpression
Declaration
public abstract MemberDeclaration VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression namedExpression)
Parameters
Type | Name | Description |
---|---|---|
MemberDeclarationNamedExpression | namedExpression | The MemberDeclarationNamedExpression to visit. |
Returns
Type | Description |
---|---|
MemberDeclaration | Returns the (possibly modified) node. |
VisitMemberDeclaratorNamedIdentifier(MemberDeclarationNamedIdentifier)
Visits an instance of MemberDeclarationNamedIdentifier.
Declaration
public abstract MemberDeclaration VisitMemberDeclaratorNamedIdentifier(MemberDeclarationNamedIdentifier namedIdentifier)
Parameters
Type | Name | Description |
---|---|---|
MemberDeclarationNamedIdentifier | namedIdentifier | The MemberDeclarationNamedIdentifier to dispatch to. |
Returns
Type | Description |
---|---|
MemberDeclaration | Returns the (possibly modified) node. |
VisitNamedSetReference(NamedSetReference)
Visits a NamedSetReference.
Declaration
public abstract Set VisitNamedSetReference(NamedSetReference namedSetReference)
Parameters
Type | Name | Description |
---|---|---|
NamedSetReference | namedSetReference | the NamedSetReference to visit. |
Returns
Type | Description |
---|---|
Set | Returns the (possibly modified) node. |
VisitNull(NullConstant)
Visits a null constant.
Declaration
public abstract Expression VisitNull(NullConstant nullConstant)
Parameters
Type | Name | Description |
---|---|---|
NullConstant | nullConstant | The null constant to visit. |
Returns
Type | Description |
---|---|
Expression | Returns a (possibly other) node. |
VisitOrderBy(OrderBy)
Visits an OrderBy.
Declaration
public abstract OrderBy VisitOrderBy(OrderBy orderBy)
Parameters
Type | Name | Description |
---|---|---|
OrderBy | orderBy | the OrderBy to visit. |
Returns
Type | Description |
---|---|
OrderBy | Returns the (possibly modified) node. |
VisitOrderByExpression(OrderByExpression)
Visits an OrderByExpression.
Declaration
public abstract OrderByExpression VisitOrderByExpression(OrderByExpression orderBy)
Parameters
Type | Name | Description |
---|---|---|
OrderByExpression | orderBy | the OrderByExpression to visit. |
Returns
Type | Description |
---|---|
OrderByExpression | Returns the (possibly modified) node. |
VisitParameter(Parameter)
Visits a Parameter.
Declaration
public abstract Expression VisitParameter(Parameter parameter)
Parameters
Type | Name | Description |
---|---|---|
Parameter | parameter | the Parameter to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |
VisitQuery(Query)
Visits a query.
Declaration
public abstract Query VisitQuery(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query | the query to visit. |
Returns
Type | Description |
---|---|
Query | Returns the (possibly modified) node. |
VisitQueryOptions(QueryOptions)
Visits a QueryOptions.
Declaration
public abstract QueryOptions VisitQueryOptions(QueryOptions queryOptions)
Parameters
Type | Name | Description |
---|---|---|
QueryOptions | queryOptions | the QueryOptions to visit. |
Returns
Type | Description |
---|---|
QueryOptions | Returns the (possibly modified) node. |
VisitSelectAlias(SelectAlias)
Visits a SelectAlias.
Declaration
public abstract Select VisitSelectAlias(SelectAlias selectAlias)
Parameters
Type | Name | Description |
---|---|---|
SelectAlias | selectAlias | the SelectAlias to visit. |
Returns
Type | Description |
---|---|
Select | Returns the (possibly modified) node. |
VisitSelectNewWith(SelectNewWith)
Visits a SelectNewWith.
Declaration
public abstract Select VisitSelectNewWith(SelectNewWith selectNewWith)
Parameters
Type | Name | Description |
---|---|---|
SelectNewWith | selectNewWith | The SelectNewWith to visit. |
Returns
Type | Description |
---|---|
Select | Returns the (possibly modified) node. |
VisitSkipAndTake(SkipAndTake)
Visits a SkipAndTake node.
Declaration
public abstract SkipAndTake VisitSkipAndTake(SkipAndTake skipAndTake)
Parameters
Type | Name | Description |
---|---|---|
SkipAndTake | skipAndTake | the SkipAndTake node to visit. |
Returns
Type | Description |
---|---|
SkipAndTake | Returns the (possibly modified) node. |
VisitStringConstant(StringConstant)
Visits a StringConstant.
Declaration
public abstract Expression VisitStringConstant(StringConstant stringConstant)
Parameters
Type | Name | Description |
---|---|---|
StringConstant | stringConstant | the StringConstant to visit. |
Returns
Type | Description |
---|---|
Expression | Returns the (possibly modified) node. |