*/
public class LabeledStatement extends Statement {
- public char[] label;
+ public String label;
public Statement statement;
- public LabeledStatement(final char[] label, final Statement statement, final int sourceStart, final int sourceEnd) {
+ public LabeledStatement(final String label,
+ final Statement statement,
+ final int sourceStart,
+ final int sourceEnd) {
super(sourceStart, sourceEnd);
this.label = label;
this.statement = statement;
* @return a String
*/
public String toString() {
- return new String(label) + statement.toString();
+ return label + statement.toString();
}
/**
/**
* Get the variables from outside (parameters, globals ...)
- * @return the variables from outside
*/
- public List getOutsideVariable() {
- return statement.getOutsideVariable();
+ public void getOutsideVariable(final List list) {
+ statement.getOutsideVariable(list);
}
/**
* get the modified variables.
- * @return the variables modified
*/
- public List getModifiedVariable() {
- return statement.getModifiedVariable();
+ public void getModifiedVariable(final List list) {
+ statement.getModifiedVariable(list);
}
/**
* Get the variables used.
- * @return the variables used
*/
- public List getUsedVariable() {
- return statement.getUsedVariable();
+ public void getUsedVariable(final List list) {
+ statement.getUsedVariable(list);
}
}