Table of Contents

Class DelegateVisitor

Namespace
TimeCockpit.Data.QueryLanguage.Syntax
Assembly
TimeCockpit.Data.dll

visitor forwarding to optionally set function delegates.

public class DelegateVisitor : Visitor
Inheritance
Object
DelegateVisitor
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

DelegateVisitor()

public DelegateVisitor()

Properties

OnAggregationFunctionCall

Gets or sets the OnAggregationFunctionCall Delegate

public Func<AggregationFunctionCall, AggregationFunctionCall> OnAggregationFunctionCall { set; }

Property Value

Func<AggregationFunctionCall, AggregationFunctionCall>

OnBackReferenceSource

Gets or sets the OnBackReferenceSource Delegate.

public Func<BackReferenceSource, QuerySource> OnBackReferenceSource { set; }

Property Value

Func<BackReferenceSource, QuerySource>

OnBinaryExpression

Gets or sets the OnBinaryExpression Delegate

public Func<BinaryExpression, Expression> OnBinaryExpression { set; }

Property Value

Func<BinaryExpression, Expression>

OnBooleanConstant

Gets or sets the OnBooleanConstant Delegate

public Func<BooleanConstant, Expression> OnBooleanConstant { set; }

Property Value

Func<BooleanConstant, Expression>

OnDateConstant

Gets or sets the OnDateConstant Delegate

public Func<DateConstant, Expression> OnDateConstant { set; }

Property Value

Func<DateConstant, Expression>

OnDateTimeConstant

Gets or sets the OnDateTimeConstant Delegate

public Func<DateTimeConstant, Expression> OnDateTimeConstant { set; }

Property Value

Func<DateTimeConstant, Expression>

OnDeadOfSource

Gets or sets the OnDeadOfSource delegate.

public Func<DeadOfSource, QuerySource> OnDeadOfSource { set; }

Property Value

Func<DeadOfSource, QuerySource>

OnDecimalConstant

Gets or sets the OnDecimalConstant Delegate

public Func<DecimalConstant, Expression> OnDecimalConstant { set; }

Property Value

Func<DecimalConstant, Expression>

OnEntitySource

Gets or sets the OnQueryTableSource Delegate

public Func<EntitySource, QuerySource> OnEntitySource { set; }

Property Value

Func<EntitySource, QuerySource>

OnEntitySourceIncludeConditional

Gets or sets the OnQueryTableSourceIncludeConditional Delegate

public Func<EntitySourceIncludeConditional, EntitySourceInclude> OnEntitySourceIncludeConditional { set; }

Property Value

Func<EntitySourceIncludeConditional, EntitySourceInclude>

OnEntitySourceIncludeRelation

Gets or sets the OnQueryTableSourceIncludeRelation Delegate

public Func<EntitySourceIncludeRelation, EntitySourceInclude> OnEntitySourceIncludeRelation { set; }

Property Value

Func<EntitySourceIncludeRelation, EntitySourceInclude>

OnExplicitSet

Gets or sets the OnExplicitSet Delegate

public Func<ExplicitSet, Set> OnExplicitSet { set; }

Property Value

Func<ExplicitSet, Set>

OnFunctionCall

Gets or sets the OnFunctionCall Delegate

public Func<FunctionCall, Expression> OnFunctionCall { set; }

Property Value

Func<FunctionCall, Expression>

OnGuidConstant

Gets or sets the OnGuidConstant Delegate

public Func<GuidConstant, Expression> OnGuidConstant { set; }

Property Value

Func<GuidConstant, Expression>

OnHasChangedFunction

Gets or sets the OnHasChangedFunction Delegate.

public Func<HasChangedFunction, Expression> OnHasChangedFunction { set; }

Property Value

Func<HasChangedFunction, Expression>

OnMemberAccess

Gets or sets the OnMemberAccess Delegate

public Func<MemberAccess, Expression> OnMemberAccess { set; }

Property Value

Func<MemberAccess, Expression>

OnMemberDeclarationForwarded

Gets or sets the OnMemberDeclarationForwarded Delegate

public Func<MemberDeclarationForwarded, MemberDeclaration> OnMemberDeclarationForwarded { set; }

Property Value

Func<MemberDeclarationForwarded, MemberDeclaration>

OnMemberDeclarationNamedExpression

Gets or sets the OnMemberDeclarationNamedExpression Delegate

public Func<MemberDeclarationNamedExpression, MemberDeclaration> OnMemberDeclarationNamedExpression { set; }

Property Value

Func<MemberDeclarationNamedExpression, MemberDeclaration>

OnMemberDeclarationNamedIdentifier

Gets or sets the OnMemberDeclarationNamedIdentifier Delegate

public Func<MemberDeclarationNamedIdentifier, MemberDeclaration> OnMemberDeclarationNamedIdentifier { set; }

Property Value

Func<MemberDeclarationNamedIdentifier, MemberDeclaration>

OnNamedSetReference

Gets or sets the OnNamedSetReference Delegate

public Func<NamedSetReference, Set> OnNamedSetReference { set; }

Property Value

Func<NamedSetReference, Set>

OnNullConstant

Gets or sets the OnNullConstant Delegate

public Func<NullConstant, Expression> OnNullConstant { set; }

Property Value

Func<NullConstant, Expression>

OnOrderBy

Gets or sets the OnOrderBy Delegate

public Func<OrderBy, OrderBy> OnOrderBy { set; }

Property Value

Func<OrderBy, OrderBy>

OnOrderByExpression

Gets or sets the OnOrderByExpression Delegate

public Func<OrderByExpression, OrderByExpression> OnOrderByExpression { set; }

Property Value

Func<OrderByExpression, OrderByExpression>

OnParameter

Gets or sets the OnParameter Delegate

public Func<Parameter, Expression> OnParameter { set; }

Property Value

Func<Parameter, Expression>

OnQuery

Gets or sets the OnQuery Delegate

public Func<Query, Query> OnQuery { set; }

Property Value

Func<Query, Query>

OnQueryOptions

Gets or sets the OnQueryOptions Delegate

public Func<QueryOptions, QueryOptions> OnQueryOptions { set; }

Property Value

Func<QueryOptions, QueryOptions>

OnSelectAlias

Gets or sets the OnSelectAlias Delegate

public Func<SelectAlias, SelectAlias> OnSelectAlias { set; }

Property Value

Func<SelectAlias, SelectAlias>

OnSelectNewWith

Gets or sets the OnSelectNewWith Delegate.

public Func<SelectNewWith, SelectNewWith> OnSelectNewWith { set; }

Property Value

Func<SelectNewWith, SelectNewWith>

OnSkipAndTake

Gets or sets the OnSkipAndTake Delegate.

public Func<SkipAndTake, SkipAndTake> OnSkipAndTake { set; }

Property Value

Func<SkipAndTake, SkipAndTake>

OnStringConstant

Gets or sets the OnStringConstant Delegate

public Func<StringConstant, Expression> OnStringConstant { set; }

Property Value

Func<StringConstant, Expression>

Methods

VisitAggregationFunctionCall(AggregationFunctionCall)

Dispatches the visit to the OnAggregationFunctionCall, if set.

public override Expression VisitAggregationFunctionCall(AggregationFunctionCall aggregateFunctionCall)

Parameters

aggregateFunctionCall AggregationFunctionCall

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnAggregationFunctionCall if set, aggregateFunctionCall otherwise.

VisitBackReferenceSource(BackReferenceSource)

Dispatches the visit to the OnBackReferenceSource, if set.

public override QuerySource VisitBackReferenceSource(BackReferenceSource backReferenceSource)

Parameters

backReferenceSource BackReferenceSource

The BackReferenceSource to visit.

Returns

QuerySource

Returns the result of the call to OnBackReferenceSource if set, backReferenceSource otherwise.

VisitBinaryExpression(BinaryExpression)

Dispatches the visit to the OnBinaryExpression, if set.

public override Expression VisitBinaryExpression(BinaryExpression binaryExpression)

Parameters

binaryExpression BinaryExpression

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnBinaryExpression if set, binaryExpression otherwise.

VisitBooleanConstant(BooleanConstant)

Dispatches the visit to the OnBooleanConstant, if set.

public override Expression VisitBooleanConstant(BooleanConstant booleanConstant)

Parameters

booleanConstant BooleanConstant

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnBooleanConstant if set, booleanConstant otherwise.

VisitDateConstant(DateConstant)

Dispatches the visit to the OnDateConstant, if set.

public override Expression VisitDateConstant(DateConstant dateConstant)

Parameters

dateConstant DateConstant

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnDateConstant if set, dateConstant otherwise.

VisitDateTimeConstant(DateTimeConstant)

Dispatches the visit to the OnDateTimeConstant, if set.

public override Expression VisitDateTimeConstant(DateTimeConstant dateTimeConstant)

Parameters

dateTimeConstant DateTimeConstant

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnDateTimeConstant if set, dateTimeConstant otherwise.

VisitDeadOfSource(DeadOfSource)

Dispatches the visit to the OnDeadOfSource delegate, if set.

public override QuerySource VisitDeadOfSource(DeadOfSource deadOfSource)

Parameters

deadOfSource DeadOfSource

The node to dispatch.

Returns

QuerySource

Returns the result of the call to OnDeadOfSource if set, the deadOfSource parameter otherwise.

VisitDecimalConstant(DecimalConstant)

Dispatches the visit to the OnDecimalConstant, if set.

public override Expression VisitDecimalConstant(DecimalConstant decimalConstant)

Parameters

decimalConstant DecimalConstant

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnDecimalConstant if set, decimalConstant otherwise.

VisitEntitySource(EntitySource)

Dispatches the visit to the OnQueryTableSource, if set.

public override QuerySource VisitEntitySource(EntitySource queryTableSource)

Parameters

queryTableSource EntitySource

The include all ast node to dispatch.

Returns

QuerySource

Returns the result of the call to OnEntitySource if set, includeConditional otherwise.

VisitEntitySourceIncludeConditional(EntitySourceIncludeConditional)

Dispatches the visit to the QueryTableSourceIncludeConditional, if set.

public override EntitySourceInclude VisitEntitySourceIncludeConditional(EntitySourceIncludeConditional includeConditional)

Parameters

includeConditional EntitySourceIncludeConditional

The include all ast node to dispatch.

Returns

EntitySourceInclude

Returns the result of the call to OnEntitySourceIncludeConditional if set, includeConditional otherwise.

VisitEntitySourceIncludeRelation(EntitySourceIncludeRelation)

Dispatches the visit to the OnQueryTableSourceIncludeRelation, if set.

public override EntitySourceInclude VisitEntitySourceIncludeRelation(EntitySourceIncludeRelation includeRelation)

Parameters

includeRelation EntitySourceIncludeRelation

The include all ast node to dispatch.

Returns

EntitySourceInclude

Returns the result of the call to OnEntitySourceIncludeRelation if set, includeRelation otherwise.

VisitExplicitSet(ExplicitSet)

Dispatches the visit to the OnExplicitSet, if set.

public override Set VisitExplicitSet(ExplicitSet explicitSet)

Parameters

explicitSet ExplicitSet

The include all ast node to dispatch.

Returns

Set

Returns the result of the call to OnParameter if set, explicitSet otherwise.

VisitFunctionCall(FunctionCall)

Dispatches the visit to the OnFunctionCall, if set.

public override Expression VisitFunctionCall(FunctionCall functionCall)

Parameters

functionCall FunctionCall

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnFunctionCall if set, functionCall otherwise.

VisitGuidConstant(GuidConstant)

Dispatches the visit to the OnGuidConstant, if set.

public override Expression VisitGuidConstant(GuidConstant guidConstant)

Parameters

guidConstant GuidConstant

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnGuidConstant if set, guidConstant otherwise.

VisitHasChangedFunction(HasChangedFunction)

public override Expression VisitHasChangedFunction(HasChangedFunction hasChangedFunction)

Parameters

hasChangedFunction HasChangedFunction

The HasChangedFunction to visit.

Returns

Expression

Returns the possibly modified expression.

VisitMemberAccess(MemberAccess)

Dispatches the visit to the OnMemberAccess, if set.

public override Expression VisitMemberAccess(MemberAccess memberAccess)

Parameters

memberAccess MemberAccess

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnMemberAccess if set, memberAccess otherwise.

VisitMemberDeclarationForwarded(MemberDeclarationForwarded)

Dispatches the visit to the OnMemberDeclarationForwarded, if set.

public override MemberDeclaration VisitMemberDeclarationForwarded(MemberDeclarationForwarded forwarded)

Parameters

forwarded MemberDeclarationForwarded

The include all ast node to dispatch.

Returns

MemberDeclaration

Returns the result of the call to OnMemberDeclarationForwarded if set, forwarded otherwise.

VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression)

Dispatches the visit to the OnMemberDeclarationNamedExpression, if set.

public override MemberDeclaration VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression namedExpression)

Parameters

namedExpression MemberDeclarationNamedExpression

The include all ast node to dispatch.

Returns

MemberDeclaration

Returns the result of the call to OnMemberDeclarationNamedExpression if set, namedExpression otherwise.

VisitMemberDeclaratorNamedIdentifier(MemberDeclarationNamedIdentifier)

Dispatches the visit to the OnMemberDeclarationNamedIdentifier, if set.

public override MemberDeclaration VisitMemberDeclaratorNamedIdentifier(MemberDeclarationNamedIdentifier namedIdentifier)

Parameters

namedIdentifier MemberDeclarationNamedIdentifier

The include all ast node to dispatch.

Returns

MemberDeclaration

Returns the result of the call to OnMemberDeclarationNamedIdentifier if set, namedIdentifier otherwise.

VisitNamedSetReference(NamedSetReference)

Dispatches the visit to the OnNamedSetReference, if set.

public override Set VisitNamedSetReference(NamedSetReference namedSetReference)

Parameters

namedSetReference NamedSetReference

The include all ast node to dispatch.

Returns

Set

Returns the result of the call to OnNamedSetReference if set, namedSetReference otherwise.

VisitNull(NullConstant)

Dispatches the visit to the OnNullConstant, if set.

public override Expression VisitNull(NullConstant nullConstant)

Parameters

nullConstant NullConstant

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnNullConstant if set, nullConstant otherwise.

VisitOrderBy(OrderBy)

Dispatches the visit to the OnOrderBy funciton, if set.

public override OrderBy VisitOrderBy(OrderBy orderBy)

Parameters

orderBy OrderBy

The order by ast node to dispatch.

Returns

OrderBy

Returns the result of the call to OnOrderBy if OnOrderBy is set, orderBy otherwise.

VisitOrderByExpression(OrderByExpression)

Dispatches the visit to the OnOrderByExpression, if set.

public override OrderByExpression VisitOrderByExpression(OrderByExpression orderByExpression)

Parameters

orderByExpression OrderByExpression

The OrderByExpression ast node to dispatch.

Returns

OrderByExpression

Returns the result of the call to OnOrderByExpression if OnOrderByExpression is set, orderByExpression otherwise.

VisitParameter(Parameter)

Dispatches the visit to the OnParameter, if set.

public override Expression VisitParameter(Parameter parameter)

Parameters

parameter Parameter

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnParameter if set, parameter otherwise.

VisitQuery(Query)

Dispatches the visit to the OnQuery function if set.

public override Query VisitQuery(Query query)

Parameters

query Query

The query to dispatch.

Returns

Query

Returns the result of OnQuery if OnQuery is set, query otherwise.

VisitQueryOptions(QueryOptions)

Dispatches the visit to the OnQueryOptions, if set.

public override QueryOptions VisitQueryOptions(QueryOptions queryOptions)

Parameters

queryOptions QueryOptions

The query options ast node to dispatch.

Returns

QueryOptions

Returns the result of the call to OnQueryOptions if OnQueryOptions is set, queryOptions otherwise.

VisitSelectAlias(SelectAlias)

Dispatches the visit to the OnSelectAlias function, if set.

public override Select VisitSelectAlias(SelectAlias selectAlias)

Parameters

selectAlias SelectAlias

The SelectAlias to dispatch.

Returns

Select

Returns the result of the call to OnSelectAlias if OnSelectAlias is set, selectAlias otherwise.

VisitSelectNewWith(SelectNewWith)

Dispatches the visit to the OnSelectNewWith function, if set.

public override Select VisitSelectNewWith(SelectNewWith selectNewWith)

Parameters

selectNewWith SelectNewWith

The SelectNewWith to visit.

Returns

Select

Returns the result of the call to OnSelectNewWith if OnSelectNewWith is set, selectNewWith otherwise.

VisitSkipAndTake(SkipAndTake)

Dispatches the visit to the OnSkipAndTake, if set.

public override SkipAndTake VisitSkipAndTake(SkipAndTake skipAndTake)

Parameters

skipAndTake SkipAndTake

The SkipAndTake AST node to dispatch.

Returns

SkipAndTake

Returns the result of the call to OnSkipAndTake if OnSkipAndTake is set, skipAndTake otherwise.

VisitStringConstant(StringConstant)

Dispatches the visit to the OnStringConstant, if set.

public override Expression VisitStringConstant(StringConstant stringConstant)

Parameters

stringConstant StringConstant

The include all ast node to dispatch.

Returns

Expression

Returns the result of the call to OnStringConstant if set, stringConstant otherwise.