Interface ExprVisitor<T>

Type Parameters:
T - the result type of visit methods.

public interface ExprVisitor<T>
A visitor of an expression.
  • Method Details

    • visitSeq

      T visitSeq(SeqExpr seq)
      Visits a seq.
      Parameters:
      seq - the seq.
      Returns:
      the result.
    • visitNum

      T visitNum(NumExpr num)
      Vists a num expression.
      Parameters:
      num - the num expression.
      Returns:
      the result.
    • visitStr

      T visitStr(StrExpr str)
      Visits a str expression.
      Parameters:
      str - the str expression.
      Returns:
      the result.
    • visitBinding

      T visitBinding(BindingExpr binding)
      Visits a binding expression.
      Parameters:
      binding - the binding expression.
      Returns:
      the result.
    • visitDeref

      T visitDeref(DerefExpr deref)
      Visits a deref expression.
      Parameters:
      deref - the deref expression.
      Returns:
      the result.
    • visitVarref

      T visitVarref(VarrefExpr varref)
      Visits a varref expression.
      Parameters:
      varref - the varref expression.
      Returns:
      the result.
    • visitFun

      T visitFun(FunExpr fun)
      Visits a fun.
      Parameters:
      fun - the fun expression.
      Returns:
      the result.
    • visitVec

      T visitVec(VecExpr vec)
      Visits a vec expression.
      Parameters:
      vec - the vec expression.
      Returns:
      the result
    • visitMcall

      T visitMcall(McallExpr mcall)
      Visits a mcall expression.
      Parameters:
      mcall - the mcall expression.
      Returns:
      the result.
    • visitRcall

      T visitRcall(RcallExpr rcall)
      Visits an rcall expression.
      Parameters:
      rcall - the rcall expression.
      Returns:
      the result.