3.x RC1 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / PHPEchoBlock.java
index 674f9d1..abef9c5 100644 (file)
@@ -1,19 +1,16 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
-import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;
-
 import java.util.List;
-import java.util.ArrayList;
 
 /**
  * a php echo block.
  * <?= someexpression ?>
  * @author Matthieu Casanova
  */
-public class PHPEchoBlock extends AstNode {
+public final class PHPEchoBlock extends AstNode {
 
   /** the expression. */
-  public Expression expr;
+  private final Expression expr;
 
   /**
    * Create a new php echo block.
@@ -48,25 +45,24 @@ public class PHPEchoBlock extends AstNode {
 
   /**
    * Get the variables from outside (parameters, globals ...)
-   * @return an empty list
+   *
+   * @param list the list where we will put variables
    */
-  public List getOutsideVariable() {
-    return new ArrayList();
-  }
+  public void getOutsideVariable(final List list) {}
 
   /**
    * get the modified variables.
-   * @return an empty list
+   *
+   * @param list the list where we will put variables
    */
-  public List getModifiedVariable() {
-    return new ArrayList();
-  }
+  public void getModifiedVariable(final List list) {}
 
   /**
    * Get the variables used.
-   * @return the used variables are the used variables from the expression
+   *
+   * @param list the list where we will put variables
    */
-  public List getUsedVariable() {
-    return expr.getUsedVariable();
+  public void getUsedVariable(final List list) {
+    expr.getUsedVariable(list);
   }
 }