Interface IVisitor

    • Method Detail

      • visitScript

        java.lang.Object visitScript​(Script script)
                              throws VilException
        Visits a script.
        Parameters:
        script - the project instance
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitLoadProperties

        java.lang.Object visitLoadProperties​(LoadProperties properties)
                                      throws VilException
        Visits a load properties directive.
        Parameters:
        properties - the load properties representation
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitStrategyCallExpression

        java.lang.Object visitStrategyCallExpression​(StrategyCallExpression call)
                                              throws VilException
        Visits a strategy call node.
        Parameters:
        call - the node
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitRuleCallExpression

        java.lang.Object visitRuleCallExpression​(RuleCallExpression ex)
                                          throws VilException
        Visits a rule call expression.
        Parameters:
        ex - the expression
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitJoinExpression

        java.lang.Object visitJoinExpression​(JoinExpression ex)
                                      throws VilException
        Visits a join expression.
        Parameters:
        ex - the join expression
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitJoinVariableDeclaration

        java.lang.Object visitJoinVariableDeclaration​(JoinVariableDeclaration decl)
                                               throws VilException
        Visits a join variable declaration.
        Parameters:
        decl - the declaration
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitAlternativeExpression

        java.lang.Object visitAlternativeExpression​(AlternativeExpression alt)
                                             throws VilException
        Visits an alternative.
        Parameters:
        alt - the alternative
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitRule

        java.lang.Object visitRule​(Rule rule)
                            throws VilException
        Visits a rule.
        Parameters:
        rule - the rule
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitRule

        java.lang.Object visitRule​(VtlRule rule)
                            throws VilException
        Visits a VTL mapping rule.
        Parameters:
        rule - the rule
        Returns:
        the result of visiting the given statement (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitMapExpression

        java.lang.Object visitMapExpression​(MapExpression map)
                                     throws VilException
        Visits a map expression.
        Parameters:
        map - the expression to be visited
        Returns:
        the result of visiting the given expression (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitWhileStatement

        java.lang.Object visitWhileStatement​(WhileStatement stmt)
                                      throws VilException
        Visits a while statement.
        Parameters:
        stmt - the statement to be visited
        Returns:
        the result of visiting the given expression (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitForStatement

        java.lang.Object visitForStatement​(ForStatement stmt)
                                    throws VilException
        Visits a for statement.
        Parameters:
        stmt - the statement to be visited
        Returns:
        the result of visiting the given expression (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)
      • visitInstantiateExpression

        java.lang.Object visitInstantiateExpression​(InstantiateExpression inst)
                                             throws VilException
        Visits an instantiate expression.
        Parameters:
        inst - the instantiation expression
        Returns:
        the result of visiting the given expression (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)