X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/WhileStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/WhileStatement.java index 80ff26a..f98367c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/WhileStatement.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/WhileStatement.java @@ -1,18 +1,17 @@ package net.sourceforge.phpdt.internal.compiler.ast; import java.util.List; -import java.util.ArrayList; /** * A While statement. * @author Matthieu Casanova */ -public class WhileStatement extends Statement { +public final class WhileStatement extends Statement { /** The condition expression. */ - public Expression condition; + private final Expression condition; /** The action of the while. (it could be a block) */ - public Statement action; + private final Statement action; /** * Create a While statement. @@ -49,6 +48,8 @@ public class WhileStatement extends Statement { /** * Get the variables from outside (parameters, globals ...) + * + * @param list the list where we will put variables */ public void getOutsideVariable(final List list) { condition.getOutsideVariable(list); // todo: check if unuseful @@ -59,6 +60,8 @@ public class WhileStatement extends Statement { /** * get the modified variables. + * + * @param list the list where we will put variables */ public void getModifiedVariable(final List list) { condition.getModifiedVariable(list); @@ -69,6 +72,8 @@ public class WhileStatement extends Statement { /** * Get the variables used. + * + * @param list the list where we will put variables */ public void getUsedVariable(final List list) { condition.getUsedVariable(list);