--- /dev/null
+package net.sourceforge.phpdt.internal.compiler.ast;
+
+/**
+ * @author Matthieu Casanova
+ */
+public class EchoStatement extends Statement {
+
+ /** An array of expressions in this echo statement. */
+ public Expression[] expressions;
+
+ public EchoStatement (Expression[] expressions, int sourceStart) {
+ super(sourceStart, expressions[expressions.length].sourceEnd);
+ this.expressions = expressions;
+ }
+
+ public String toString() {
+ StringBuffer buff = new StringBuffer("echo ");
+ for (int i = 0; i < expressions.length; i++) {
+ if (i != 0) {
+ buff.append(", ");
+ }
+ buff.append(expressions[i].toString());
+ }
+ return buff.toString();
+ }
+
+ /**
+ * Return the object into String.
+ * @param tab how many tabs (not used here
+ * @return a String
+ */
+ public String toString(int tab) {
+ return tabString(tab) + toString();
+ }
+}