package net.sourceforge.phpdt.internal.compiler.ast; import java.util.List; /** * @author Matthieu Casanova */ public class HTMLBlock extends Statement { public AstNode[] nodes; public HTMLBlock(final AstNode[] nodes) { super(nodes[0].sourceStart, nodes[(nodes.length > 0) ? nodes.length - 1 : 0].sourceEnd); this.nodes = nodes; } /** * Return the object into String. * @param tab how many tabs (not used here * @return a String */ public String toString(final int tab) { final StringBuffer buff = new StringBuffer(tabString(tab)); buff.append("?>"); for (int i = 0; i < nodes.length; i++) { buff.append(nodes[i].toString(tab + 1)); } buff.append("