Class Expr.Var
- java.lang.Object
-
- at.jku.ssw.fp.sect04_4.visitor_nofp.Expr
-
- at.jku.ssw.fp.sect04_4.visitor_nofp.Expr.Var
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(Visitor<R> v)
Accepts a visitor by calling theVisitor.visitVar(Var)
method.String
toString()
Returns a string representation.
-
-
-
Field Detail
-
name
public final String name
The variable name
-
-
Constructor Detail
-
Var
public Var(String name)
Constructor for variable expressions.- Parameters:
name
- the variable name
-
-
Method Detail
-
toString
public String toString()
Returns a string representation.
-
accept
public <R> R accept(Visitor<R> v)
Accepts a visitor by calling theVisitor.visitVar(Var)
method.
-
-