1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * It will be the mother of our own ast tree for php just like the ast tree of Eclipse.
5 * @author Matthieu Casanova
7 public abstract class AstNode {
9 public int sourceStart, sourceEnd;
12 * Add some tabulations.
13 * @param tab the number of tabulations
14 * @return a String containing some spaces
16 public static String tabString(int tab) {
17 StringBuffer s = new StringBuffer();
18 for (int i = tab; i > 0; i--)
19 s.append(" "); //$NON-NLS-1$
23 public String toString() {
27 public String toString(int tab) {
28 return "****" + super.toString() + "****"; //$NON-NLS-2$ //$NON-NLS-1$