Interface Visitor<R>

  • Type Parameters:
    R - the return value of the visit methods.
    All Known Implementing Classes:
    ToStringVisitor

    public interface Visitor<R>
    Interface for visitors of expressions.
    Author:
    Herbert Prähofer
    • Method Detail

      • visitLit

        R visitLit​(Expr.Lit lit)
        Visits a literal.
        Parameters:
        lit - the literal to visit
        Returns:
        the return value
      • visitVar

        R visitVar​(Expr.Var vbl)
        Visits a variable.
        Parameters:
        vbl - the variable to visit
        Returns:
        the return value
      • visitNot

        R visitNot​(Expr.Not not)
        Visits a not-expression.
        Parameters:
        not - the not-expression to visit
        Returns:
        the return value
      • visitAnd

        R visitAnd​(Expr.And and)
        Visits an and-expression.
        Parameters:
        and - the and-expression to visit
        Returns:
        the return value
      • visitOr

        R visitOr​(Expr.Or or)
        Visits an or-expression.
        Parameters:
        or - the or-expression to visit
        Returns:
        the return value