X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AbstractCase.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AbstractCase.java index 02291c8..4817163 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AbstractCase.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/AbstractCase.java @@ -9,26 +9,27 @@ import java.util.List; public abstract class AbstractCase extends Statement { /** The statements in the case. */ - public Statement[] statements; + public final Statement[] statements; /** - * Create a case statement + * Create a case statement. * @param statements the statements array * @param sourceStart the beginning source offset * @param sourceEnd the ending offset */ - public AbstractCase(final Statement[] statements, - final int sourceStart, - final int sourceEnd) { + protected AbstractCase(final Statement[] statements, + final int sourceStart, + final int sourceEnd) { super(sourceStart, sourceEnd); this.statements = statements; } /** - * Get the variables from outside (parameters, globals ...) + * Get the variables from outside (parameters, globals ...). + * @param list the list where we will put variables */ - public void getOutsideVariable(final List list) { + public final void getOutsideVariable(final List list) { for (int i = 0; i < statements.length; i++) { statements[i].getOutsideVariable(list); } @@ -36,6 +37,7 @@ public abstract class AbstractCase extends Statement { /** * get the modified variables. + * @param list the list where we will put variables */ public void getModifiedVariable(final List list) { for (int i = 0; i < statements.length; i++) { @@ -45,6 +47,7 @@ public abstract class AbstractCase extends Statement { /** * Get the variables used. + * @param list the list where we will put variables */ public void getUsedVariable(final List list) { for (int i = 0; i < statements.length; i++) {