*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / HTMLBlock.java
index 4dae9eb..27d93fa 100644 (file)
@@ -1,5 +1,8 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
+import java.util.List;
+import java.util.ArrayList;
+
 /**
  * @author Matthieu Casanova
  */
@@ -7,7 +10,7 @@ public class HTMLBlock extends Statement {
 
   public AstNode[] nodes;
 
-  public HTMLBlock(AstNode[] nodes) {
+  public HTMLBlock(final AstNode[] nodes) {
     super(nodes[0].sourceStart, nodes[nodes.length-1].sourceEnd);
     this.nodes = nodes;
   }
@@ -17,14 +20,37 @@ public class HTMLBlock extends Statement {
    * @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 ...)
+   * @return an empty list
+   */
+  public List getOutsideVariable() {
+    return new ArrayList();
+  }
+
+  /**
+   * get the modified variables.
+   * @return an empty list
+   */
+  public List getModifiedVariable() {
+    return new ArrayList();
+  }
+
+  /**
+   * Get the variables used.
+   * @return an empty list
+   */
+  public List getUsedVariable() {
+    return new ArrayList();
+  }
 }