- Type Parameters:
T
- the result type of visit methods.
public interface ExprVisitor<T>
A visitor of an expression.
-
Method Summary
Modifier and TypeMethodDescriptionvisitBinding
(BindingExpr binding) Visits a binding expression.visitDeref
(DerefExpr deref) Visits a deref expression.Visits a fun.visitMcall
(McallExpr mcall) Visits a mcall expression.Vists a num expression.visitRcall
(RcallExpr rcall) Visits an rcall expression.Visits a seq.Visits a str expression.visitVarref
(VarrefExpr varref) Visits a varref expression.Visits a vec expression.
-
Method Details
-
visitSeq
Visits a seq.- Parameters:
seq
- the seq.- Returns:
- the result.
-
visitNum
Vists a num expression.- Parameters:
num
- the num expression.- Returns:
- the result.
-
visitStr
Visits a str expression.- Parameters:
str
- the str expression.- Returns:
- the result.
-
visitBinding
Visits a binding expression.- Parameters:
binding
- the binding expression.- Returns:
- the result.
-
visitDeref
Visits a deref expression.- Parameters:
deref
- the deref expression.- Returns:
- the result.
-
visitVarref
Visits a varref expression.- Parameters:
varref
- the varref expression.- Returns:
- the result.
-
visitFun
Visits a fun.- Parameters:
fun
- the fun expression.- Returns:
- the result.
-
visitVec
Visits a vec expression.- Parameters:
vec
- the vec expression.- Returns:
- the result
-
visitMcall
Visits a mcall expression.- Parameters:
mcall
- the mcall expression.- Returns:
- the result.
-
visitRcall
Visits an rcall expression.- Parameters:
rcall
- the rcall expression.- Returns:
- the result.
-