Class QueryExpressionVisitor<TArgument, TResult>
- Namespace
- JsonApiDotNetCore.Queries.Expressions
- Assembly
- JsonApiDotNetCore.dll
Implements the visitor design pattern that enables traversing a QueryExpression tree.
[PublicAPI]
public abstract class QueryExpressionVisitor<TArgument, TResult>
Type Parameters
TArgument
The type to use for passing custom state between visit methods.
TResult
The type that is returned from visit methods.
- Inheritance
-
QueryExpressionVisitor<TArgument, TResult>
- Derived
- Inherited Members
Methods
DefaultVisit(QueryExpression, TArgument)
public virtual TResult DefaultVisit(QueryExpression expression, TArgument argument)
Parameters
expression
QueryExpressionargument
TArgument
Returns
- TResult
Visit(QueryExpression, TArgument)
public virtual TResult Visit(QueryExpression expression, TArgument argument)
Parameters
expression
QueryExpressionargument
TArgument
Returns
- TResult
VisitAny(AnyExpression, TArgument)
public virtual TResult VisitAny(AnyExpression expression, TArgument argument)
Parameters
expression
AnyExpressionargument
TArgument
Returns
- TResult
VisitComparison(ComparisonExpression, TArgument)
public virtual TResult VisitComparison(ComparisonExpression expression, TArgument argument)
Parameters
expression
ComparisonExpressionargument
TArgument
Returns
- TResult
VisitCount(CountExpression, TArgument)
public virtual TResult VisitCount(CountExpression expression, TArgument argument)
Parameters
expression
CountExpressionargument
TArgument
Returns
- TResult
VisitHas(HasExpression, TArgument)
public virtual TResult VisitHas(HasExpression expression, TArgument argument)
Parameters
expression
HasExpressionargument
TArgument
Returns
- TResult
VisitInclude(IncludeExpression, TArgument)
public virtual TResult VisitInclude(IncludeExpression expression, TArgument argument)
Parameters
expression
IncludeExpressionargument
TArgument
Returns
- TResult
VisitIncludeElement(IncludeElementExpression, TArgument)
public virtual TResult VisitIncludeElement(IncludeElementExpression expression, TArgument argument)
Parameters
expression
IncludeElementExpressionargument
TArgument
Returns
- TResult
VisitIsType(IsTypeExpression, TArgument)
public virtual TResult VisitIsType(IsTypeExpression expression, TArgument argument)
Parameters
expression
IsTypeExpressionargument
TArgument
Returns
- TResult
VisitLiteralConstant(LiteralConstantExpression, TArgument)
public virtual TResult VisitLiteralConstant(LiteralConstantExpression expression, TArgument argument)
Parameters
expression
LiteralConstantExpressionargument
TArgument
Returns
- TResult
VisitLogical(LogicalExpression, TArgument)
public virtual TResult VisitLogical(LogicalExpression expression, TArgument argument)
Parameters
expression
LogicalExpressionargument
TArgument
Returns
- TResult
VisitMatchText(MatchTextExpression, TArgument)
public virtual TResult VisitMatchText(MatchTextExpression expression, TArgument argument)
Parameters
expression
MatchTextExpressionargument
TArgument
Returns
- TResult
VisitNot(NotExpression, TArgument)
public virtual TResult VisitNot(NotExpression expression, TArgument argument)
Parameters
expression
NotExpressionargument
TArgument
Returns
- TResult
VisitNullConstant(NullConstantExpression, TArgument)
public virtual TResult VisitNullConstant(NullConstantExpression expression, TArgument argument)
Parameters
expression
NullConstantExpressionargument
TArgument
Returns
- TResult
VisitPagination(PaginationExpression, TArgument)
public virtual TResult VisitPagination(PaginationExpression expression, TArgument argument)
Parameters
expression
PaginationExpressionargument
TArgument
Returns
- TResult
VisitPaginationElementQueryStringValue(PaginationElementQueryStringValueExpression, TArgument)
public virtual TResult VisitPaginationElementQueryStringValue(PaginationElementQueryStringValueExpression expression, TArgument argument)
Parameters
expression
PaginationElementQueryStringValueExpressionargument
TArgument
Returns
- TResult
VisitPaginationQueryStringValue(PaginationQueryStringValueExpression, TArgument)
public virtual TResult VisitPaginationQueryStringValue(PaginationQueryStringValueExpression expression, TArgument argument)
Parameters
expression
PaginationQueryStringValueExpressionargument
TArgument
Returns
- TResult
VisitQueryStringParameterScope(QueryStringParameterScopeExpression, TArgument)
public virtual TResult VisitQueryStringParameterScope(QueryStringParameterScopeExpression expression, TArgument argument)
Parameters
expression
QueryStringParameterScopeExpressionargument
TArgument
Returns
- TResult
VisitQueryableHandler(QueryableHandlerExpression, TArgument)
public virtual TResult VisitQueryableHandler(QueryableHandlerExpression expression, TArgument argument)
Parameters
expression
QueryableHandlerExpressionargument
TArgument
Returns
- TResult
VisitResourceFieldChain(ResourceFieldChainExpression, TArgument)
public virtual TResult VisitResourceFieldChain(ResourceFieldChainExpression expression, TArgument argument)
Parameters
expression
ResourceFieldChainExpressionargument
TArgument
Returns
- TResult
VisitSort(SortExpression, TArgument)
public virtual TResult VisitSort(SortExpression expression, TArgument argument)
Parameters
expression
SortExpressionargument
TArgument
Returns
- TResult
VisitSortElement(SortElementExpression, TArgument)
public virtual TResult VisitSortElement(SortElementExpression expression, TArgument argument)
Parameters
expression
SortElementExpressionargument
TArgument
Returns
- TResult
VisitSparseFieldSet(SparseFieldSetExpression, TArgument)
public virtual TResult VisitSparseFieldSet(SparseFieldSetExpression expression, TArgument argument)
Parameters
expression
SparseFieldSetExpressionargument
TArgument
Returns
- TResult
VisitSparseFieldTable(SparseFieldTableExpression, TArgument)
public virtual TResult VisitSparseFieldTable(SparseFieldTableExpression expression, TArgument argument)
Parameters
expression
SparseFieldTableExpressionargument
TArgument
Returns
- TResult