1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * @author Matthieu Casanova
6 public class HTMLBlock extends Statement {
8 public AstNode[] nodes;
10 public HTMLBlock(AstNode[] nodes) {
11 super(nodes[0].sourceStart, nodes[nodes.length-1].sourceEnd);
16 * Return the object into String.
17 * @param tab how many tabs (not used here
20 public String toString(int tab) {
21 final StringBuffer buff = new StringBuffer(tabString(tab));
23 for (int i = 0; i < nodes.length; i++) {
24 AstNode node = nodes[i];
25 buff.append(node.toString(tab +1));
27 buff.append("<?php\n");
28 return buff.toString();