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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
visitAnd(Expr.And and)
Visits an and-expression.R
visitLit(Expr.Lit lit)
Visits a literal.R
visitNot(Expr.Not not)
Visits a not-expression.R
visitOr(Expr.Or or)
Visits an or-expression.R
visitVar(Expr.Var vbl)
Visits a variable.
-
-
-
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
-
-