package net.sourceforge.phpdt.internal.compiler.ast;
-import java.util.ArrayList;
import java.util.List;
/**
* it's else
* @author Matthieu Casanova
*/
-public class Else extends Statement {
+public final class Else extends Statement {
/** the statements. */
- public Statement[] statements;
+ private final Statement[] statements;
/**
* An else statement bad version ( : endif).
final int sourceStart,
final int sourceEnd) {
super(sourceStart, sourceEnd);
- this.statements = new Statement[1];
- this.statements[0] = statement;
+ statements = new Statement[1];
+ statements[0] = statement;
}
/**
/**
* Get the variables from outside (parameters, globals ...)
+ *
+ * @param list the list where we will put variables
*/
public void getOutsideVariable(final List list) {
for (int i = 0; i < statements.length; i++) {
/**
* 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++) {
/**
* 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++) {