jltools.ast
Interface For
- All Superinterfaces:
- java.lang.Cloneable, Copy, Node, java.io.Serializable, Stmt
- All Known Implementing Classes:
- For_c
- public interface For
- extends Stmt
An immutable representation of a Java language for
statement. Contains a statement to be executed and an expression
to be tested indicating whether to reexecute the statement.
Methods inherited from interface jltools.ast.Node |
buildTypes_, buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, translate_, typeCheck_, typeCheckOverride_, visit, visitChildren |
inits
public java.util.List inits()
- List of initialization statements
inits
public For inits(java.util.List inits)
cond
public Expr cond()
- Loop condition
cond
public For cond(Expr cond)
iters
public java.util.List iters()
- List of iterator expressions
iters
public For iters(java.util.List iters)
body
public Stmt body()
- Loop body
body
public For body(Stmt body)