Class Expr.And
- java.lang.Object
-
- at.jku.ssw.fp.sect04_4.visitor_fp.Expr
-
- at.jku.ssw.fp.sect04_4.visitor_fp.Expr.BinOp
-
- at.jku.ssw.fp.sect04_4.visitor_fp.Expr.And
-
- Enclosing class:
- Expr
public static class Expr.And extends Expr.BinOp
Class representing and-expressions.
-
-
Field Summary
-
Fields inherited from class at.jku.ssw.fp.sect04_4.visitor_fp.Expr.BinOp
left, right
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Consumer<Expr.Lit> litFn, Consumer<Expr.Var> varFn, Consumer<Expr.And> andFn, Consumer<Expr.Or> orFn, Consumer<Expr.Not> notFn)
Executes the action for theExpr.And
type.<R> R
apply(Function<Expr.Lit,R> litFn, Function<Expr.Var,R> varFn, Function<Expr.And,R> andFn, Function<Expr.Or,R> orFn, Function<Expr.Not,R> notFn)
Applies the function for theExpr.And
type.protected String
getOp()
Returns" && "
as string for the operator.-
Methods inherited from class at.jku.ssw.fp.sect04_4.visitor_fp.Expr.BinOp
toString
-
-
-
-
Method Detail
-
getOp
protected String getOp()
Returns" && "
as string for the operator.- Specified by:
getOp
in classExpr.BinOp
- Returns:
" && "
-
apply
public <R> R apply(Function<Expr.Lit,R> litFn, Function<Expr.Var,R> varFn, Function<Expr.And,R> andFn, Function<Expr.Or,R> orFn, Function<Expr.Not,R> notFn)
Applies the function for theExpr.And
type.- Specified by:
apply
in classExpr
- Type Parameters:
R
- the type of the return value- Parameters:
litFn
- the function forExpr.Lit
objectsvarFn
- the function forExpr.Var
objectsandFn
- the function forExpr.And
objectsorFn
- the function forExpr.Or
objectsnotFn
- the function forExpr.Not
objects- Returns:
- the result of the function application
-
-