Search Results for

    Show / Hide Table of Contents

    Class DelegateVisitor

    visitor forwarding to optionally set function delegates.

    Inheritance
    System.Object
    Visitor
    DelegateVisitor
    Inherited Members
    Visitor.VisitAndConvert<T>(T)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.QueryLanguage.Syntax
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class DelegateVisitor : Visitor

    Constructors

    DelegateVisitor()

    Declaration
    public DelegateVisitor()

    Properties

    OnAggregationFunctionCall

    Gets or sets the OnAggregationFunctionCall Delegate

    Declaration
    public Func<AggregationFunctionCall, AggregationFunctionCall> OnAggregationFunctionCall { set; }
    Property Value
    Type Description
    System.Func<AggregationFunctionCall, AggregationFunctionCall>

    OnBackReferenceSource

    Gets or sets the OnBackReferenceSource Delegate.

    Declaration
    public Func<BackReferenceSource, QuerySource> OnBackReferenceSource { set; }
    Property Value
    Type Description
    System.Func<BackReferenceSource, QuerySource>

    OnBinaryExpression

    Gets or sets the OnBinaryExpression Delegate

    Declaration
    public Func<BinaryExpression, Expression> OnBinaryExpression { set; }
    Property Value
    Type Description
    System.Func<BinaryExpression, Expression>

    OnBooleanConstant

    Gets or sets the OnBooleanConstant Delegate

    Declaration
    public Func<BooleanConstant, Expression> OnBooleanConstant { set; }
    Property Value
    Type Description
    System.Func<BooleanConstant, Expression>

    OnDateConstant

    Gets or sets the OnDateConstant Delegate

    Declaration
    public Func<DateConstant, Expression> OnDateConstant { set; }
    Property Value
    Type Description
    System.Func<DateConstant, Expression>

    OnDateTimeConstant

    Gets or sets the OnDateTimeConstant Delegate

    Declaration
    public Func<DateTimeConstant, Expression> OnDateTimeConstant { set; }
    Property Value
    Type Description
    System.Func<DateTimeConstant, Expression>

    OnDeadOfSource

    Gets or sets the OnDeadOfSource delegate.

    Declaration
    public Func<DeadOfSource, QuerySource> OnDeadOfSource { set; }
    Property Value
    Type Description
    System.Func<DeadOfSource, QuerySource>

    OnDecimalConstant

    Gets or sets the OnDecimalConstant Delegate

    Declaration
    public Func<DecimalConstant, Expression> OnDecimalConstant { set; }
    Property Value
    Type Description
    System.Func<DecimalConstant, Expression>

    OnEntitySource

    Gets or sets the OnQueryTableSource Delegate

    Declaration
    public Func<EntitySource, QuerySource> OnEntitySource { set; }
    Property Value
    Type Description
    System.Func<EntitySource, QuerySource>

    OnEntitySourceIncludeConditional

    Gets or sets the OnQueryTableSourceIncludeConditional Delegate

    Declaration
    public Func<EntitySourceIncludeConditional, EntitySourceInclude> OnEntitySourceIncludeConditional { set; }
    Property Value
    Type Description
    System.Func<EntitySourceIncludeConditional, EntitySourceInclude>

    OnEntitySourceIncludeRelation

    Gets or sets the OnQueryTableSourceIncludeRelation Delegate

    Declaration
    public Func<EntitySourceIncludeRelation, EntitySourceInclude> OnEntitySourceIncludeRelation { set; }
    Property Value
    Type Description
    System.Func<EntitySourceIncludeRelation, EntitySourceInclude>

    OnExplicitSet

    Gets or sets the OnExplicitSet Delegate

    Declaration
    public Func<ExplicitSet, Set> OnExplicitSet { set; }
    Property Value
    Type Description
    System.Func<ExplicitSet, Set>

    OnFunctionCall

    Gets or sets the OnFunctionCall Delegate

    Declaration
    public Func<FunctionCall, Expression> OnFunctionCall { set; }
    Property Value
    Type Description
    System.Func<FunctionCall, Expression>

    OnGuidConstant

    Gets or sets the OnGuidConstant Delegate

    Declaration
    public Func<GuidConstant, Expression> OnGuidConstant { set; }
    Property Value
    Type Description
    System.Func<GuidConstant, Expression>

    OnHasChangedFunction

    Gets or sets the OnHasChangedFunction Delegate.

    Declaration
    public Func<HasChangedFunction, Expression> OnHasChangedFunction { set; }
    Property Value
    Type Description
    System.Func<HasChangedFunction, Expression>

    OnMemberAccess

    Gets or sets the OnMemberAccess Delegate

    Declaration
    public Func<MemberAccess, Expression> OnMemberAccess { set; }
    Property Value
    Type Description
    System.Func<MemberAccess, Expression>

    OnMemberDeclarationForwarded

    Gets or sets the OnMemberDeclarationForwarded Delegate

    Declaration
    public Func<MemberDeclarationForwarded, MemberDeclaration> OnMemberDeclarationForwarded { set; }
    Property Value
    Type Description
    System.Func<MemberDeclarationForwarded, MemberDeclaration>

    OnMemberDeclarationNamedExpression

    Gets or sets the OnMemberDeclarationNamedExpression Delegate

    Declaration
    public Func<MemberDeclarationNamedExpression, MemberDeclaration> OnMemberDeclarationNamedExpression { set; }
    Property Value
    Type Description
    System.Func<MemberDeclarationNamedExpression, MemberDeclaration>

    OnMemberDeclarationNamedIdentifier

    Gets or sets the OnMemberDeclarationNamedIdentifier Delegate

    Declaration
    public Func<MemberDeclarationNamedIdentifier, MemberDeclaration> OnMemberDeclarationNamedIdentifier { set; }
    Property Value
    Type Description
    System.Func<MemberDeclarationNamedIdentifier, MemberDeclaration>

    OnNamedSetReference

    Gets or sets the OnNamedSetReference Delegate

    Declaration
    public Func<NamedSetReference, Set> OnNamedSetReference { set; }
    Property Value
    Type Description
    System.Func<NamedSetReference, Set>

    OnNullConstant

    Gets or sets the OnNullConstant Delegate

    Declaration
    public Func<NullConstant, Expression> OnNullConstant { set; }
    Property Value
    Type Description
    System.Func<NullConstant, Expression>

    OnOrderBy

    Gets or sets the OnOrderBy Delegate

    Declaration
    public Func<OrderBy, OrderBy> OnOrderBy { set; }
    Property Value
    Type Description
    System.Func<OrderBy, OrderBy>

    OnOrderByExpression

    Gets or sets the OnOrderByExpression Delegate

    Declaration
    public Func<OrderByExpression, OrderByExpression> OnOrderByExpression { set; }
    Property Value
    Type Description
    System.Func<OrderByExpression, OrderByExpression>

    OnParameter

    Gets or sets the OnParameter Delegate

    Declaration
    public Func<Parameter, Expression> OnParameter { set; }
    Property Value
    Type Description
    System.Func<Parameter, Expression>

    OnQuery

    Gets or sets the OnQuery Delegate

    Declaration
    public Func<Query, Query> OnQuery { set; }
    Property Value
    Type Description
    System.Func<Query, Query>

    OnQueryOptions

    Gets or sets the OnQueryOptions Delegate

    Declaration
    public Func<QueryOptions, QueryOptions> OnQueryOptions { set; }
    Property Value
    Type Description
    System.Func<QueryOptions, QueryOptions>

    OnSelectAlias

    Gets or sets the OnSelectAlias Delegate

    Declaration
    public Func<SelectAlias, SelectAlias> OnSelectAlias { set; }
    Property Value
    Type Description
    System.Func<SelectAlias, SelectAlias>

    OnSelectNewWith

    Gets or sets the OnSelectNewWith Delegate.

    Declaration
    public Func<SelectNewWith, SelectNewWith> OnSelectNewWith { set; }
    Property Value
    Type Description
    System.Func<SelectNewWith, SelectNewWith>

    OnSkipAndTake

    Gets or sets the OnSkipAndTake Delegate.

    Declaration
    public Func<SkipAndTake, SkipAndTake> OnSkipAndTake { set; }
    Property Value
    Type Description
    System.Func<SkipAndTake, SkipAndTake>

    OnStringConstant

    Gets or sets the OnStringConstant Delegate

    Declaration
    public Func<StringConstant, Expression> OnStringConstant { set; }
    Property Value
    Type Description
    System.Func<StringConstant, Expression>

    Methods

    VisitAggregationFunctionCall(AggregationFunctionCall)

    Dispatches the visit to the OnAggregationFunctionCall, if set.

    Declaration
    public override Expression VisitAggregationFunctionCall(AggregationFunctionCall aggregateFunctionCall)
    Parameters
    Type Name Description
    AggregationFunctionCall aggregateFunctionCall

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitAggregationFunctionCall(AggregationFunctionCall)

    VisitBackReferenceSource(BackReferenceSource)

    Dispatches the visit to the OnBackReferenceSource, if set.

    Declaration
    public override QuerySource VisitBackReferenceSource(BackReferenceSource backReferenceSource)
    Parameters
    Type Name Description
    BackReferenceSource backReferenceSource

    The BackReferenceSource to visit.

    Returns
    Type Description
    QuerySource

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

    Overrides
    Visitor.VisitBackReferenceSource(BackReferenceSource)

    VisitBinaryExpression(BinaryExpression)

    Dispatches the visit to the OnBinaryExpression, if set.

    Declaration
    public override Expression VisitBinaryExpression(BinaryExpression binaryExpression)
    Parameters
    Type Name Description
    BinaryExpression binaryExpression

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitBinaryExpression(BinaryExpression)

    VisitBooleanConstant(BooleanConstant)

    Dispatches the visit to the OnBooleanConstant, if set.

    Declaration
    public override Expression VisitBooleanConstant(BooleanConstant booleanConstant)
    Parameters
    Type Name Description
    BooleanConstant booleanConstant

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitBooleanConstant(BooleanConstant)

    VisitDateConstant(DateConstant)

    Dispatches the visit to the OnDateConstant, if set.

    Declaration
    public override Expression VisitDateConstant(DateConstant dateConstant)
    Parameters
    Type Name Description
    DateConstant dateConstant

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitDateConstant(DateConstant)

    VisitDateTimeConstant(DateTimeConstant)

    Dispatches the visit to the OnDateTimeConstant, if set.

    Declaration
    public override Expression VisitDateTimeConstant(DateTimeConstant dateTimeConstant)
    Parameters
    Type Name Description
    DateTimeConstant dateTimeConstant

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitDateTimeConstant(DateTimeConstant)

    VisitDeadOfSource(DeadOfSource)

    Dispatches the visit to the OnDeadOfSource delegate, if set.

    Declaration
    public override QuerySource VisitDeadOfSource(DeadOfSource deadOfSource)
    Parameters
    Type Name Description
    DeadOfSource deadOfSource

    The node to dispatch.

    Returns
    Type Description
    QuerySource

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

    Overrides
    Visitor.VisitDeadOfSource(DeadOfSource)

    VisitDecimalConstant(DecimalConstant)

    Dispatches the visit to the OnDecimalConstant, if set.

    Declaration
    public override Expression VisitDecimalConstant(DecimalConstant decimalConstant)
    Parameters
    Type Name Description
    DecimalConstant decimalConstant

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitDecimalConstant(DecimalConstant)

    VisitEntitySource(EntitySource)

    Dispatches the visit to the OnQueryTableSource, if set.

    Declaration
    public override QuerySource VisitEntitySource(EntitySource queryTableSource)
    Parameters
    Type Name Description
    EntitySource queryTableSource

    The include all ast node to dispatch.

    Returns
    Type Description
    QuerySource

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

    Overrides
    Visitor.VisitEntitySource(EntitySource)

    VisitEntitySourceIncludeConditional(EntitySourceIncludeConditional)

    Dispatches the visit to the QueryTableSourceIncludeConditional, if set.

    Declaration
    public override EntitySourceInclude VisitEntitySourceIncludeConditional(EntitySourceIncludeConditional includeConditional)
    Parameters
    Type Name Description
    EntitySourceIncludeConditional includeConditional

    The include all ast node to dispatch.

    Returns
    Type Description
    EntitySourceInclude

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

    Overrides
    Visitor.VisitEntitySourceIncludeConditional(EntitySourceIncludeConditional)

    VisitEntitySourceIncludeRelation(EntitySourceIncludeRelation)

    Dispatches the visit to the OnQueryTableSourceIncludeRelation, if set.

    Declaration
    public override EntitySourceInclude VisitEntitySourceIncludeRelation(EntitySourceIncludeRelation includeRelation)
    Parameters
    Type Name Description
    EntitySourceIncludeRelation includeRelation

    The include all ast node to dispatch.

    Returns
    Type Description
    EntitySourceInclude

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

    Overrides
    Visitor.VisitEntitySourceIncludeRelation(EntitySourceIncludeRelation)

    VisitExplicitSet(ExplicitSet)

    Dispatches the visit to the OnExplicitSet, if set.

    Declaration
    public override Set VisitExplicitSet(ExplicitSet explicitSet)
    Parameters
    Type Name Description
    ExplicitSet explicitSet

    The include all ast node to dispatch.

    Returns
    Type Description
    Set

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

    Overrides
    Visitor.VisitExplicitSet(ExplicitSet)

    VisitFunctionCall(FunctionCall)

    Dispatches the visit to the OnFunctionCall, if set.

    Declaration
    public override Expression VisitFunctionCall(FunctionCall functionCall)
    Parameters
    Type Name Description
    FunctionCall functionCall

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitFunctionCall(FunctionCall)

    VisitGuidConstant(GuidConstant)

    Dispatches the visit to the OnGuidConstant, if set.

    Declaration
    public override Expression VisitGuidConstant(GuidConstant guidConstant)
    Parameters
    Type Name Description
    GuidConstant guidConstant

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitGuidConstant(GuidConstant)

    VisitHasChangedFunction(HasChangedFunction)

    Visits a HasChangedFunction.

    Declaration
    public override Expression VisitHasChangedFunction(HasChangedFunction hasChangedFunction)
    Parameters
    Type Name Description
    HasChangedFunction hasChangedFunction

    The HasChangedFunction to visit.

    Returns
    Type Description
    Expression

    Returns the possibly modified expression.

    Overrides
    Visitor.VisitHasChangedFunction(HasChangedFunction)

    VisitMemberAccess(MemberAccess)

    Dispatches the visit to the OnMemberAccess, if set.

    Declaration
    public override Expression VisitMemberAccess(MemberAccess memberAccess)
    Parameters
    Type Name Description
    MemberAccess memberAccess

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitMemberAccess(MemberAccess)

    VisitMemberDeclarationForwarded(MemberDeclarationForwarded)

    Dispatches the visit to the OnMemberDeclarationForwarded, if set.

    Declaration
    public override MemberDeclaration VisitMemberDeclarationForwarded(MemberDeclarationForwarded forwarded)
    Parameters
    Type Name Description
    MemberDeclarationForwarded forwarded

    The include all ast node to dispatch.

    Returns
    Type Description
    MemberDeclaration

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

    Overrides
    Visitor.VisitMemberDeclarationForwarded(MemberDeclarationForwarded)

    VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression)

    Dispatches the visit to the OnMemberDeclarationNamedExpression, if set.

    Declaration
    public override MemberDeclaration VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression namedExpression)
    Parameters
    Type Name Description
    MemberDeclarationNamedExpression namedExpression

    The include all ast node to dispatch.

    Returns
    Type Description
    MemberDeclaration

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

    Overrides
    Visitor.VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression)

    VisitMemberDeclaratorNamedIdentifier(MemberDeclarationNamedIdentifier)

    Dispatches the visit to the OnMemberDeclarationNamedIdentifier, if set.

    Declaration
    public override MemberDeclaration VisitMemberDeclaratorNamedIdentifier(MemberDeclarationNamedIdentifier namedIdentifier)
    Parameters
    Type Name Description
    MemberDeclarationNamedIdentifier namedIdentifier

    The include all ast node to dispatch.

    Returns
    Type Description
    MemberDeclaration

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

    Overrides
    Visitor.VisitMemberDeclaratorNamedIdentifier(MemberDeclarationNamedIdentifier)

    VisitNamedSetReference(NamedSetReference)

    Dispatches the visit to the OnNamedSetReference, if set.

    Declaration
    public override Set VisitNamedSetReference(NamedSetReference namedSetReference)
    Parameters
    Type Name Description
    NamedSetReference namedSetReference

    The include all ast node to dispatch.

    Returns
    Type Description
    Set

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

    Overrides
    Visitor.VisitNamedSetReference(NamedSetReference)

    VisitNull(NullConstant)

    Dispatches the visit to the OnNullConstant, if set.

    Declaration
    public override Expression VisitNull(NullConstant nullConstant)
    Parameters
    Type Name Description
    NullConstant nullConstant

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitNull(NullConstant)

    VisitOrderBy(OrderBy)

    Dispatches the visit to the OnOrderBy funciton, if set.

    Declaration
    public override OrderBy VisitOrderBy(OrderBy orderBy)
    Parameters
    Type Name Description
    OrderBy orderBy

    The order by ast node to dispatch.

    Returns
    Type Description
    OrderBy

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

    Overrides
    Visitor.VisitOrderBy(OrderBy)

    VisitOrderByExpression(OrderByExpression)

    Dispatches the visit to the OnOrderByExpression, if set.

    Declaration
    public override OrderByExpression VisitOrderByExpression(OrderByExpression orderByExpression)
    Parameters
    Type Name Description
    OrderByExpression orderByExpression

    The OrderByExpression ast node to dispatch.

    Returns
    Type Description
    OrderByExpression

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

    Overrides
    Visitor.VisitOrderByExpression(OrderByExpression)

    VisitParameter(Parameter)

    Dispatches the visit to the OnParameter, if set.

    Declaration
    public override Expression VisitParameter(Parameter parameter)
    Parameters
    Type Name Description
    Parameter parameter

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitParameter(Parameter)

    VisitQuery(Query)

    Dispatches the visit to the OnQuery function if set.

    Declaration
    public override Query VisitQuery(Query query)
    Parameters
    Type Name Description
    Query query

    The query to dispatch.

    Returns
    Type Description
    Query

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

    Overrides
    Visitor.VisitQuery(Query)

    VisitQueryOptions(QueryOptions)

    Dispatches the visit to the OnQueryOptions, if set.

    Declaration
    public override QueryOptions VisitQueryOptions(QueryOptions queryOptions)
    Parameters
    Type Name Description
    QueryOptions queryOptions

    The query options ast node to dispatch.

    Returns
    Type Description
    QueryOptions

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

    Overrides
    Visitor.VisitQueryOptions(QueryOptions)

    VisitSelectAlias(SelectAlias)

    Dispatches the visit to the OnSelectAlias function, if set.

    Declaration
    public override Select VisitSelectAlias(SelectAlias selectAlias)
    Parameters
    Type Name Description
    SelectAlias selectAlias

    The SelectAlias to dispatch.

    Returns
    Type Description
    Select

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

    Overrides
    Visitor.VisitSelectAlias(SelectAlias)

    VisitSelectNewWith(SelectNewWith)

    Dispatches the visit to the OnSelectNewWith function, if set.

    Declaration
    public override Select VisitSelectNewWith(SelectNewWith selectNewWith)
    Parameters
    Type Name Description
    SelectNewWith selectNewWith

    The SelectNewWith to visit.

    Returns
    Type Description
    Select

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

    Overrides
    Visitor.VisitSelectNewWith(SelectNewWith)

    VisitSkipAndTake(SkipAndTake)

    Dispatches the visit to the OnSkipAndTake, if set.

    Declaration
    public override SkipAndTake VisitSkipAndTake(SkipAndTake skipAndTake)
    Parameters
    Type Name Description
    SkipAndTake skipAndTake

    The SkipAndTake AST node to dispatch.

    Returns
    Type Description
    SkipAndTake

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

    Overrides
    Visitor.VisitSkipAndTake(SkipAndTake)

    VisitStringConstant(StringConstant)

    Dispatches the visit to the OnStringConstant, if set.

    Declaration
    public override Expression VisitStringConstant(StringConstant stringConstant)
    Parameters
    Type Name Description
    StringConstant stringConstant

    The include all ast node to dispatch.

    Returns
    Type Description
    Expression

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

    Overrides
    Visitor.VisitStringConstant(StringConstant)
    In This Article
    Back to top Copyright © 2020 software architects gmbh