X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/EchoStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/EchoStatement.java index 916f072..b4677ce 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/EchoStatement.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/EchoStatement.java @@ -5,14 +5,15 @@ import java.util.List; /** * an echo statement. * echo something; + * * @author Matthieu Casanova */ -public class EchoStatement extends Statement { +public final class EchoStatement extends Statement { /** An array of expressions in this echo statement. */ - public Expression[] expressions; + private final Expression[] expressions; - public EchoStatement (final Expression[] expressions, final int sourceStart, final int sourceEnd) { + public EchoStatement(final Expression[] expressions, final int sourceStart, final int sourceEnd) { super(sourceStart, sourceEnd); this.expressions = expressions; } @@ -30,18 +31,21 @@ public class EchoStatement extends Statement { /** * Return the object into String. + * * @param tab how many tabs (not used here * @return a String */ public String toString(final int tab) { final String tabs = tabString(tab); final String str = toString(); - final StringBuffer buff = new StringBuffer(tabs.length()+str.length()); + final StringBuffer buff = new StringBuffer(tabs.length() + str.length()); return buff.toString(); } /** * 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 < expressions.length; i++) { @@ -51,6 +55,8 @@ public class EchoStatement 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 < expressions.length; i++) { @@ -60,6 +66,8 @@ public class EchoStatement 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 < expressions.length; i++) {