1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * @author Matthieu Casanova
8 public class HTMLBlock extends Statement {
10 public AstNode[] nodes;
12 public HTMLBlock(final AstNode[] nodes) {
13 super(nodes[0].sourceStart, nodes[(nodes.length > 0) ? nodes.length - 1 : 0].sourceEnd);
18 * Return the object into String.
19 * @param tab how many tabs (not used here
22 public String toString(final int tab) {
23 final StringBuffer buff = new StringBuffer(tabString(tab));
25 for (int i = 0; i < nodes.length; i++) {
26 buff.append(nodes[i].toString(tab + 1));
28 buff.append("<?php\n");
29 return buff.toString();
33 * Get the variables from outside (parameters, globals ...)
35 public void getOutsideVariable(final List list) {
39 * get the modified variables.
41 public void getModifiedVariable(final List list) {
45 * Get the variables used.
47 public void getUsedVariable(final List list) {