1 package net.sourceforge.phpdt.internal.compiler.ast;
4 import java.util.ArrayList;
7 * @author Matthieu Casanova
9 public class HTMLBlock extends Statement {
11 public AstNode[] nodes;
13 public HTMLBlock(final AstNode[] nodes) {
14 super(nodes[0].sourceStart, nodes[(nodes.length > 0) ? nodes.length - 1 : 0].sourceEnd);
19 * Return the object into String.
20 * @param tab how many tabs (not used here
23 public String toString(final int tab) {
24 final StringBuffer buff = new StringBuffer(tabString(tab));
26 for (int i = 0; i < nodes.length; i++) {
27 buff.append(nodes[i].toString(tab + 1));
29 buff.append("<?php\n");
30 return buff.toString();
34 * Get the variables from outside (parameters, globals ...)
36 public void getOutsideVariable(final List list) {
40 * get the modified variables.
42 public void getModifiedVariable(final List list) {
46 * Get the variables used.
48 public void getUsedVariable(final List list) {