X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ForStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ForStatement.java index 54d0292..b11d6f0 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ForStatement.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ForStatement.java @@ -1,27 +1,27 @@ package net.sourceforge.phpdt.internal.compiler.ast; import java.util.List; -import java.util.ArrayList; /** * A For statement. * 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 @@ -79,6 +79,8 @@ public class ForStatement extends Statement { /** * 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) { @@ -101,6 +103,8 @@ public class ForStatement extends Statement { /** * get the modified variables. + * + * @param list the list where we will put variables */ public void getModifiedVariable(final List list) { if (condition != null) { @@ -123,6 +127,8 @@ public class ForStatement extends Statement { /** * Get the variables used. + * + * @param list the list where we will put variables */ public void getUsedVariable(final List list) { if (condition != null) {