package net.sourceforge.phpdt.internal.compiler.ast;
+import java.util.List;
+import java.util.ArrayList;
+
/**
* @author Matthieu Casanova
*/
public AstNode[] nodes;
- public HTMLBlock(AstNode[] nodes) {
- super(nodes[0].sourceStart, nodes[nodes.length-1].sourceEnd);
+ public HTMLBlock(final AstNode[] nodes) {
+ super(nodes[0].sourceStart, nodes[(nodes.length > 0) ? nodes.length - 1 : 0].sourceEnd);
this.nodes = nodes;
}
* @param tab how many tabs (not used here
* @return a String
*/
- public String toString(int tab) {
+ public String toString(final int tab) {
final StringBuffer buff = new StringBuffer(tabString(tab));
buff.append("?>");
for (int i = 0; i < nodes.length; i++) {
- AstNode node = nodes[i];
- buff.append(node.toString(tab +1));
+ buff.append(nodes[i].toString(tab + 1));
}
buff.append("<?php\n");
return buff.toString();
}
+
+ /**
+ * Get the variables from outside (parameters, globals ...)
+ */
+ public void getOutsideVariable(final List list) {
+ }
+
+ /**
+ * get the modified variables.
+ */
+ public void getModifiedVariable(final List list) {
+ }
+
+ /**
+ * Get the variables used.
+ */
+ public void getUsedVariable(final List list) {
+ }
}