1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * @author Matthieu Casanova
6 public class EchoStatement extends Statement {
8 /** An array of expressions in this echo statement. */
9 public Expression[] expressions;
11 public EchoStatement (Expression[] expressions, int sourceStart) {
12 super(sourceStart, expressions[expressions.length].sourceEnd);
13 this.expressions = expressions;
16 public String toString() {
17 StringBuffer buff = new StringBuffer("echo ");
18 for (int i = 0; i < expressions.length; i++) {
22 buff.append(expressions[i].toString());
24 return buff.toString();
28 * Return the object into String.
29 * @param tab how many tabs (not used here
32 public String toString(int tab) {
33 return tabString(tab) + toString();