1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * A GlobalStatement statement in php.
5 * @author Matthieu Casanova
7 public class StaticStatement extends Statement {
9 /** An array of the variables called by this global statement. */
10 public String[] variables;
12 public StaticStatement(String[] variables, int sourceStart, int sourceEnd) {
13 super(sourceStart, sourceEnd);
14 this.variables = variables;
17 public String toString() {
18 StringBuffer buff = new StringBuffer("static ");
19 for (int i = 0; i < variables.length; i++) {
23 buff.append(variables[i]);
25 return buff.toString();
28 public String toString(int tab) {
29 return tabString(tab) + toString();