/**
* @author Matthieu Casanova
*/
-public class LabeledStatement extends Statement {
+public final class LabeledStatement extends Statement {
- public String label;
+ private final String label;
- public Statement statement;
+ private final Statement statement;
public LabeledStatement(final String label,
final Statement statement,
/**
* Return the object into String.
* It should be overriden
+ *
* @return a String
*/
public String toString() {
/**
* Return the object into String.
+ *
* @param tab how many tabs (not used here
* @return a String
*/
return tabString(tab) + toString();
}
- /**
+ /**
* Get the variables from outside (parameters, globals ...)
+ *
+ * @param list the list where we will put variables
*/
public void getOutsideVariable(final List list) {
statement.getOutsideVariable(list);
/**
* get the modified variables.
+ *
+ * @param list the list where we will put variables
*/
public void getModifiedVariable(final List list) {
statement.getModifiedVariable(list);
/**
* Get the variables used.
+ *
+ * @param list the list where we will put variables
*/
public void getUsedVariable(final List list) {
statement.getUsedVariable(list);