concepts.dsl.expression_visitor.ExpressionVisitor#

class ExpressionVisitor[source]#

Bases: object

A visitor for iterating over expressions.

Methods

__init__()#
__new__(**kwargs)#
visit(expr)[source]#

The main entry point of the visitor. It will call the corresponding method for the given expression type.

Parameters:

expr (Expression) – the expression to visit.

Returns:

the result of the visit.

Return type:

Any

visit_assign_expression(expr)[source]#
Parameters:

expr (AssignExpression)

Return type:

Any

visit_bool_expression(expr)[source]#
Parameters:

expr (BoolExpression)

Return type:

Any

visit_condition_expression(expr)[source]#
Parameters:

expr (ConditionExpression)

Return type:

Any

visit_conditional_assign_expression(expr)[source]#
Parameters:

expr (ConditionalAssignExpression)

Return type:

Any

visit_conditional_select_expression(expr)[source]#
Parameters:

expr (ConditionalSelectExpression)

Return type:

Any

visit_constant_expression(expr)[source]#
Parameters:

expr (ConstantExpression)

Return type:

Any

visit_deictic_assign_expression(expr)[source]#
Parameters:

expr (DeicticAssignExpression)

Return type:

Any

visit_deictic_select_expression(expr)[source]#
Parameters:

expr (DeicticSelectExpression)

Return type:

Any

visit_find_all_expression(expr)[source]#
Parameters:

expr (FindAllExpression)

Return type:

Any

visit_find_one_expression(expr)[source]#
Parameters:

expr (FindOneExpression)

Return type:

Any

visit_function_application_expression(expr)[source]#
Parameters:

expr (FunctionApplicationExpression)

Return type:

Any

visit_generalized_quantification_expression(expr)[source]#
Parameters:

expr (GeneralizedQuantificationExpression)

Return type:

Any

visit_list_creation_expression(expr)[source]#
Parameters:

expr (ListCreationExpression)

Return type:

Any

visit_list_expansion_expression(expr)[source]#
Parameters:

expr (ListExpansionExpression)

Return type:

Any

visit_list_function_application_expression(expr)[source]#
Parameters:

expr (ListFunctionApplicationExpression)

Return type:

Any

visit_null_expression(expr)[source]#
Parameters:

expr (NullExpression)

Return type:

Any

visit_object_compare_expression(expr)[source]#
Parameters:

expr (ObjectCompareExpression)

Return type:

Any

visit_object_constant_expression(expr)[source]#
Parameters:

expr (ObjectConstantExpression)

Return type:

Any

visit_predicate_equal_expression(expr)[source]#
Parameters:

expr (PredicateEqualExpression)

Return type:

Any

visit_quantification_expression(expr)[source]#
Parameters:

expr (QuantificationExpression)

Return type:

Any

visit_value_compare_expression(expr)[source]#
Parameters:

expr (ValueCompareExpression)

Return type:

Any

visit_variable_expression(expr)[source]#
Parameters:

expr (VariableExpression)

Return type:

Any