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 ...)
35 * @return an empty list
37 public List getOutsideVariable() {
38 return new ArrayList();
42 * get the modified variables.
43 * @return an empty list
45 public List getModifiedVariable() {
46 return new ArrayList();
50 * Get the variables used.
51 * @return an empty list
53 public List getUsedVariable() {
54 return new ArrayList();