Absyn
Class MiniJava.Stm.For
java.lang.Object
Absyn.MiniJava
Absyn.MiniJava.Stm
Absyn.MiniJava.Stm.For
- Enclosing class:
- MiniJava.Stm
public static class MiniJava.Stm.For
- extends MiniJava.Stm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
init
public final java.util.List<MiniJava.Stm> init
test
public final MiniJava.Exp test
update
public final java.util.List<MiniJava.Stm> update
body
public final MiniJava.Stm body
MiniJava.Stm.For
public MiniJava.Stm.For(Token t,
java.util.List<MiniJava.Stm> i,
MiniJava.Exp e,
java.util.List<MiniJava.Stm> u,
MiniJava.Stm s)
- A for statement
- Parameters:
t
- tokeni
- list of expression and local variable declaration
statementse
- test expression (may be null)u
- list of statement expressionss
- statement body
accept
public <D,R> R accept(MiniJava.Visitor<D,R> v,
D d)
- Description copied from class:
MiniJava
- Each AST node accepts a Visitor
- Specified by:
accept
in class MiniJava
- Type Parameters:
D
- the domain of the visitor (i.e., argument type)R
- the range of the visitor (i.e., result type)- Parameters:
v
- the visitord
- the visitor's argument
- Returns:
- the visitor's return value