Class DelegateVisitor
- Assembly
- TimeCockpit.Data.dll
visitor forwarding to optionally set function delegates.
public class DelegateVisitor : Visitor
- Inheritance
-
ObjectDelegateVisitor
- 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
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
OnEntitySourceIncludeRelation
Gets or sets the OnQueryTableSourceIncludeRelation Delegate
public Func<EntitySourceIncludeRelation, EntitySourceInclude> OnEntitySourceIncludeRelation { set; }
Property Value
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
OnMemberDeclarationNamedExpression
Gets or sets the OnMemberDeclarationNamedExpression Delegate
public Func<MemberDeclarationNamedExpression, MemberDeclaration> OnMemberDeclarationNamedExpression { set; }
Property Value
OnMemberDeclarationNamedIdentifier
Gets or sets the OnMemberDeclarationNamedIdentifier Delegate
public Func<MemberDeclarationNamedIdentifier, MemberDeclaration> OnMemberDeclarationNamedIdentifier { set; }
Property Value
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
OnOrderByExpression
Gets or sets the OnOrderByExpression Delegate
public Func<OrderByExpression, OrderByExpression> OnOrderByExpression { set; }
Property Value
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
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
aggregateFunctionCallAggregationFunctionCallThe 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
backReferenceSourceBackReferenceSourceThe 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
binaryExpressionBinaryExpressionThe 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
booleanConstantBooleanConstantThe 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
dateConstantDateConstantThe 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
dateTimeConstantDateTimeConstantThe 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
deadOfSourceDeadOfSourceThe 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
decimalConstantDecimalConstantThe 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
queryTableSourceEntitySourceThe 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
includeConditionalEntitySourceIncludeConditionalThe 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
includeRelationEntitySourceIncludeRelationThe 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
explicitSetExplicitSetThe 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
functionCallFunctionCallThe 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
guidConstantGuidConstantThe include all ast node to dispatch.
Returns
- Expression
Returns the result of the call to OnGuidConstant if set, guidConstant otherwise.
VisitHasChangedFunction(HasChangedFunction)
Visits a HasChangedFunction.
public override Expression VisitHasChangedFunction(HasChangedFunction hasChangedFunction)
Parameters
hasChangedFunctionHasChangedFunctionThe 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
memberAccessMemberAccessThe 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
forwardedMemberDeclarationForwardedThe 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
namedExpressionMemberDeclarationNamedExpressionThe 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
namedIdentifierMemberDeclarationNamedIdentifierThe 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
namedSetReferenceNamedSetReferenceThe 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
nullConstantNullConstantThe 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
orderByOrderByThe order by ast node to dispatch.
Returns
VisitOrderByExpression(OrderByExpression)
Dispatches the visit to the OnOrderByExpression, if set.
public override OrderByExpression VisitOrderByExpression(OrderByExpression orderByExpression)
Parameters
orderByExpressionOrderByExpressionThe 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
parameterParameterThe 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
queryQueryThe query to dispatch.
Returns
VisitQueryOptions(QueryOptions)
Dispatches the visit to the OnQueryOptions, if set.
public override QueryOptions VisitQueryOptions(QueryOptions queryOptions)
Parameters
queryOptionsQueryOptionsThe 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
selectAliasSelectAliasThe 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
selectNewWithSelectNewWithThe 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
skipAndTakeSkipAndTakeThe 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
stringConstantStringConstantThe include all ast node to dispatch.
Returns
- Expression
Returns the result of the call to OnStringConstant if set, stringConstant otherwise.