public class ForLoop extends Object implements Statements
Statements
that represents a for
loop.Constructor and Description |
---|
ForLoop(String initializer,
String test,
String step)
Creates a
ForLoop(String,String,String,Statements) with a
null body. |
ForLoop(String initializer,
String test,
String step,
Statements statements)
Constructs a new
ForLoop Node . |
Modifier and Type | Method and Description |
---|---|
List<Statements> |
getStatements()
Returns a list of
Statements . |
void |
setLabel(String label) |
String |
toCode()
The Java code representation of this
Node . |
public ForLoop(String initializer, String test, String step)
ForLoop(String,String,String,Statements)
with a
null body.public ForLoop(String initializer, String test, String step, Statements statements)
ForLoop
Node
.initializer
- The textual initializer Expression
.test
- The textual test Expression
.step
- The textual step Expression
. May be null
.statements
- The Statements
for the body of the loop. May be
null
.public List<Statements> getStatements()
Statements
Statements
.getStatements
in interface Statements
null
list of Statements
.public void setLabel(String label)
Copyright © 2018. All rights reserved.