* for(initializations;condition;increments) action
* @author Matthieu Casanova
*/
-public class ForStatement extends Statement {
+public final class ForStatement extends Statement {
/** the initializations. */
- public Expression[] initializations;
+ private final Expression[] initializations;
/** the condition. */
- public Expression condition;
+ private final Expression condition;
/** the increments. */
- public Expression[] increments;
+ private final Expression[] increments;
- public Statement action;
+ private final Statement action;
/**
- * a for statement
+ * a for statement.
+ *
* @param initializations the initializations expressions
* @param condition the condition when the for get out
* @param increments the increments statements
/**
* Get the variables from outside (parameters, globals ...)
+ *
+ * @param list the list where we will put variables
*/
public void getOutsideVariable(final List list) {
if (condition != null) {
/**
* get the modified variables.
+ *
+ * @param list the list where we will put variables
*/
public void getModifiedVariable(final List list) {
if (condition != null) {
/**
* Get the variables used.
+ *
+ * @param list the list where we will put variables
*/
public void getUsedVariable(final List list) {
if (condition != null) {