1 package net.sourceforge.phpdt.internal.compiler.ast;
5 * @author Matthieu Casanova
7 public class Expression extends AstNode {
9 public String toString(int tab) {
10 String s = tabString(tab);
11 return s + toStringExpression(tab);
14 //Subclass re-define toStringExpression
15 //This method is abstract and should never be called
16 //but we provide some code that is running.....just in case
17 //of developpement time (while every thing is not built)
18 public String toStringExpression() {
19 return super.toString(0);
22 public String toStringExpression(int tab) {
23 // default is regular toString expression (qualified allocation expressions redifine this method)
24 return this.toStringExpression();