* }.
* @author Matthieu Casanova
*/
-public class Block extends Statement {
+public final class Block extends Statement {
/** An array of statements inside the block. */
- public Statement[] statements;
+ public final Statement[] statements;
/**
* Create a block.
final String s = AstNode.tabString(tab);
final StringBuffer buff = new StringBuffer(s);
buff.append("{\n"); //$NON-NLS-1$
- if (this.statements != null) {
+ if (statements != null) {
for (int i = 0; i < statements.length; i++) {
buff.append(statements[i].toString(tab + 1)).append(";\n");//$NON-NLS-1$
}
/**
* 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++) {