1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * @author Matthieu Casanova
8 public final class HTMLBlock extends Statement {
10 private final 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 * @param list the list where we will put variables
37 public void getOutsideVariable(final List list) {}
40 * get the modified variables.
42 * @param list the list where we will put variables
44 public void getModifiedVariable(final List list) {}
47 * Get the variables used.
49 * @param list the list where we will put variables
51 public void getUsedVariable(final List list) {}